ASP.NET MVC: RedirectToAction with parameters to POST Action

前端 未结 2 1653
孤独总比滥情好
孤独总比滥情好 2020-11-30 05:18

This question has been asked here:

RedirectToAction with parameter

But what if I have two actions with the same name but different parameters? How do I redir

2条回答
  •  再見小時候
    2020-11-30 05:43

    Nevermind guys, actually I could just call the method directly instead of using RedirectToAction like so:

    return Terms(month, year, deposit, total);
    

    Instead of:

    return RedirectToAction("Terms", {month, year, deposit, total});
    

提交回复
热议问题