title: Redirect to Action by parameter mvc
body: <p>I want to redirect to an action in other Controller but it doesn't work
  here's my code in ProductManagerController:</p>
  
  <pre><code>[HttpPost]
  public ActionResult RedirectToImages(int id)
  {
      return RedirectToAction("Index","ProductImageManeger", new   { id=id   });
  }
  </code></pre>
  
  <p>and this in my ProductImageManagerController:</p>
  
  <pre><code>[HttpGet]
  public ViewResult Index(int id)
  {
      return View("Index",_db.ProductImages.Where(rs=&gt;rs.ProductId == id).ToList());
  }
  </code></pre>
  
  <p><strong>It redirect to ProductImageManager/Index without parameter very well(no error)</strong> but with above code i get this: </p>
  
  <blockquote>
    <p>The parameters dictionary contains a null entry for
    parameter 'ID' of non-nullable type 'System.Int32' for method
    'System.Web.Mvc.ViewResult Index(Int32)' in
    '...Controllers.ProductImageManagerController'.
    An optional parameter must be a reference type, a nullable type, or be
    declared as an optional parameter. Parameter name: parameters</p>
  </blockquote>