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 redirect to the POST Terms
action instead of the GET Terms
action.
public ActionResult Terms() {
//get method
}
[HttpPost]
public ActionResult Terms(string month, string year, int deposit = 0, int total = 0) {
//process POST request
}