title: How to move from one controller to next in Asp.net MVC
body: <p>I have a small asp.net mvc application, where I have few actionlinks in my <strong>Index.html</strong> and following code in <strong>home controllder</strong>.</p>
  
  <p>When user click on <strong>Edit ActionLink</strong>, it takes the control to HomerController's "Edit" acton method (which is of type httpGet). The view for that action method is Edit.cshtml. If I do some data manipulation in that EDIT view..and try to POST that data, What should I do ? Write another Edit action method (httpPost) in same HomeController? In that case my home controller will grow bigger right?</p>
  
  <p>If I need to write seperate controller for this purpose, how do I transfer the control to that controller? ( I mean how do I attach my newly created Edit controller to Edit view ?)</p>
  
  <pre><code>List&lt;StateCity&gt; stateCityList = new List&lt;StateCity&gt;();
          public ActionResult Index()
          {
              StateCity sc1 = new StateCity() { Id = 1, StateName = "Dallas", Cities = new List&lt;string&gt;() { "ab", "cd" } };
              StateCity sc2 = new StateCity() { Id = 2, StateName = "Austin", Cities = new List&lt;string&gt;() { "ef", "gh" } };
              stateCityList.Add(sc1);
              stateCityList.Add(sc2);
              return View(stateCityList);
          }
  
          public ActionResult About()
          {
              ViewBag.Message = "Your application description page.";
              return View();
          }
  
          public ActionResult Contact()
          {
              ViewBag.Message = "Your contact page.";
              return View();
          }
  
          public ActionResult Edit(int id)
          {
              return View();
          }
  </code></pre>