title: Access List values from another method is assigned in; C# MVC
body: <p>I have variable list <code>effectedCourseInstances</code> defined in controller and assigning value to it in <code>ProcessCourseApplicationURL()</code> method but after round trip from view, list don't hold value any more as it got <code>null</code>. I want to ensure that I can access to assigned values to <code>effectedCourseInstances</code> in <code>GetAllProcessedURLCourses()</code> method. Where I am doing wrong???? </p>
  
  <pre><code>public class CourseManagementController : Controller
  {
    private List&lt;CourseInstanceModel&gt; _effectedCourseInstances;
  
    [HttpPost]
    public ActionResult ProcessCourseApplicationURL(CourseApplicationsURLFeed_Model obj)
    {
      try
      {
        if (ModelState.IsValid)
        {
          _effectedCourseInstances = _coursesServices.ProcessAllCoursesApplicationURL(obj);
        }
      }
      catch (DataException ex)
      {
        ModelState.AddModelError("", "Unable To Process Courses Application URL from CID DB" + ex);
      }
      return PartialView("CourseApplicationURLTest_Partial", _effectedCourseInstances);
    } //end
  
    public ActionResult GetAllProcessedURLCourses([DataSourceRequest]DataSourceRequest request)
    {
      DataSourceResult CourseInstances_Feed_Result = _effectedCourseInstances.ToDataSourceResult(request);
      return Json(CourseInstances_Feed_Result, JsonRequestBehavior.AllowGet);
    }
  }
  </code></pre>