阅读背景:

何时将MVC视图拆分为两个?

来源:互联网 

I discussed best practices in MVC the other day with a colleague and he asked me how to best separate views. He was maintaining an MVC solution which had a common input form with a controller with two actions, a get action, and a post action. Both actions were returning the same view, which was filled with inline logic, and conditionals checking whether it was a post or a get.I discussed best practices in MVC the other day




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: