此操作结果采用的PasswordChange类有4个属性。其中之一是databasePassword,im将其与"CurrentPassword“属性进行比较,该属性确保用户只有在知道其当前密码的情况下才能更改其密码(网站上相当标准的过程)。var User = GetPlayer().User;
if (ModelState.IsValidRedirect("/Player&q
public ActionResult Create(Entity myEntity, AnotherEntity, myEntity2) if (ModelState.IsValid){public int Create(Entity myEntity, AnotherEntity, myEntity2) if (ModelState.IsValid)还会有包含评估类的ModelState吗?