ASP.NET MVC return Index view after httpPost -


I have created two views in the same controller. The problem is, I want to load the second view after httppost.

Index View

  Public Action Index () {Return View (); } [Action] (Return to "NXTV");  

http pst

  [http pps] Public Action Result Index (Account MODEL Model) "); }  

Next View

  View public action results (Apple model model) {return view (); }  

After the HTTP post, I added a refund to the next visit. While it always returns to the index view. I tried to find such a scenario on different websites but could not find it anywhere.

Thank you.

try this type

  [http post] public action Result Index (Account MODEL Model) {Redirect Reaction ("NXTView"); }  

Comments