Esempio n. 1
0
 public static AdminInfo Update(AdminInfo model)
 {
     model.UserPwd = Controleng.Common.Utils.MD5(model.UserPwd);
     if (model.Id == 0)
     {
         int id = AdminManage.Add(model);
         model.Id = id;
     }
     else
     {
         AdminManage.Update(model);
     }
     return(model);
 }