use*_*794 3 .net c# asp.net-mvc-3
我试图将我的登录方法从控制器操作移动到服务类.在汇编时我被告知System.Web.Mvc.ModelState does not contain a definition for 'IsValid' 我错过了使用声明吗?
System.Web.Mvc.ModelState does not contain a definition for 'IsValid'
Hen*_*man 7
ModelState 既是Controller基类的属性名称,也是类的名称.
ModelState
您移动的代码是使用该属性,错误来自尝试使用该类.
归档时间:
13 年,3 月 前
查看次数:
2037 次
最近记录: