返回具有上次状态和验证错误的相同视图

时间:2016-04-29 20:38:35

标签: asp.net-mvc validation

使用模型调用控制器方法并检查模型是否有效如果模型无效返回验证错误,条件调用控制器方法从某些视图中的某些其他控制器请检查完整代码

This Is Welcom.cshtml Page From Where I Am Calling The Method

This is Application Setting Controller If The Model Is Valid I Had Perform The Logic And Redirect To new Page According To Success Or Fail

0 个答案:

没有答案