title: MVC3 Redirect to route from ActionResult
body: <p>So I have a <code>HttpPost</code> only <code>ActionResult</code> called <code>Edit</code>. After doing its thing (logic etc), I want it to redirect to a different controller. Lets say the <code>HomeController</code>. Here it is:</p>
  
  <pre><code>[HttpPost]
  public ActionResult Edit(Chair chair, string xml)
  {
      if (ModelState.IsValid)
      {
          try
          {
              _repository.EditChair(chair, xml);
              return RedirectToRoute(new { contoller = "Home", action = "index"});
          }
          catch (Exception ex)
          {
              //error msg for failed edit in XML file
              ModelState.AddModelError("", "Error editing record. " + ex.Message);
          }
      }
      return View(Chair);
  
  }
  </code></pre>
  
  <p>Ive tryed other things like  <code>return RedirectResult()</code>, <code>RedirectToAction()</code>, <code>RedirectToRoute("string")</code> - but it still keeps returning the index view from the controller the <code>Edit</code> method is in (<code>ChairController</code>).</p>
  
  <p>Whats the right way to do this??</p>