Esempio n. 1
0
 public ActionResult EditInfo(Model.UserAdmin UserAdmin)
 {
     ViewData["deptSelectItems"] = GetdeptSelectItems();
     Business.Sys_UserAdmin Sys_UserAdmin = new Business.Sys_UserAdmin();
     Business.Sys_Role      Sys_Role      = new Business.Sys_Role();
     UserAdmin.PassWord = Utility.ChangeText.md5(UserAdmin.PassWord);
     UserAdmin.RoleName = Sys_Role.GetRoleInfoByRoleCode(UserAdmin.RoleCode).RoleName;
     if (Sys_UserAdmin.UpdateUserAdmin(UserAdmin))
     {
         return(Content("1"));
     }
     return(Content("0"));
 }