Redirect to Action by parameter mvc

后端 未结 4 1142
说谎
说谎 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:13

    Try this,

    return RedirectToAction("ActionEventName", "Controller", new { ID = model.ID, SiteID = model.SiteID });
    

    Here i mention you are pass multiple values or model also. That's why here i mention that.

提交回复
热议问题