を投稿するこの質問は、ここに頼まれました:ASP.NET MVC:パラメータを持つRedirectToActionはアクション
RedirectToAction with parameter
しかし、私は、同じ名前で異なるパラメータを持つ2つのアクションを持っている場合は? GET Terms
アクションの代わりに、POST Terms
アクションにリダイレクトするにはどうすればよいですか。
return Terms(month, year, deposit, total);
の代わりに::
return RedirectToAction("Terms", {month, year, deposit, total});
RedirectToActionをお探しですか? – PSL
http://stackoverflow.com/questions/2626179/routing-to-the-actions-with-same-names-but-different-parameters –
投稿アクションにリダイレクトすることはできません。リダイレクトは常に取得であるため、単純にはできません。 –