Redirect to Action by parameter mvc

后端 未结 4 1226
说谎
说谎 2021-02-13 02:58

I want to redirect to an action in other Controller but it doesn\'t work here\'s my code in ProductManagerController:

[HttpPost]
public ActionResult RedirectToIm         


        
4条回答
  •  离开以前
    2021-02-13 03:33

    return RedirectToAction("ProductImageManager","Index", new   { id=id   });
    

    Here is an invalid parameters order, should be an action first
    AND
    ensure your routing table is correct

提交回复
热议问题