这个问题在这里被问到:
RedirectToAction with parameter
但是如果我有两个具有相同名称但参数不同的动作呢?如何重定向到POST条款操作而不是GET条款操作.
- public ActionResult Terms() {
- //get method
- }
- [HttpPost]
- public ActionResult Terms(string month,string year,int deposit = 0,int total = 0) {
- //process POST request
- }