假设我们有一个函数可以在MVC应用程序的系统中更改用户的密码。publicJsonResultChangePassword(stringusername,stringcurrentPassword,stringnewPassword){switch(this.membershipService.ValidateLogin(username,currentPassword)){caseUserValidationResult.BasUsername:caseUserValidationResult.BadPassword://abort:returnJsonResultwithlocal
假设我们有一个函数可以在MVC应用程序的系统中更改用户的密码。publicJsonResultChangePassword(stringusername,stringcurrentPassword,stringnewPassword){switch(this.membershipService.ValidateLogin(username,currentPassword)){caseUserValidationResult.BasUsername:caseUserValidationResult.BadPassword://abort:returnJsonResultwithlocal