示例#1
0
        public void AdminUpdate(Admin admin)
        {
            //byte[] passwordHash, passwordSalt, mailHash, mailSalt;
            //HashingHelper.CreateMailHash(adminregister.Mail, out mailHash, out mailSalt);
            //HashingHelper.CreatePasswordHash(password, out passwordHash, out passwordSalt);
            //var admin = new Admin
            //{
            //    Role = adminregister.AdminRole,
            //    PasswordHash = passwordHash,
            //    PasswordSalt = passwordSalt,
            //    AdminUserNameHash = mailHash,
            //    AdminUserNameSalt = mailSalt,
            //    UserName = adminregister.UserName,
            //    Status = true

            //};
            _adminDal.Update(admin);
        }
示例#2
0
 public bool Update(Admin model)
 {
     try
     {
         return(adminDal.Update(model));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#3
0
        public void AdminUpdate(AdminDto admin)
        {
            byte[] passwordHash, passwordSalt;
            var    ad = _adminDal.Get(x => x.AdminUserName == admin.UserName);

            if (admin.Password != null)
            {
                CreatePasswordHash(admin.Password, out passwordHash, out passwordSalt);
                ad.PasswordHash = passwordHash;
                ad.PasswordSalt = passwordSalt;
            }
            ad.AdminRole = admin.AdminRole;
            _adminDal.Update(ad);
        }
示例#4
0
 public void AdminUpdate(Admin admin)
 {
     _adminDal.Update(admin);
 }
 public void Update(Admin entity)
 {
     ValidationTool.Validate(validator, entity);
     dal.Update(entity);
 }
示例#6
0
 public void AdminUpdate(Admin admin)
 {
     admin.AdminUserName = lm.Encrypt(admin.AdminUserName);
     //admin.AdminPassword = lm.PasswordHash(admin.AdminPassword);
     _adminDal.Update(admin);
 }
示例#7
0
 public IResult Update(Admin admin)
 {
     _adminDal.Update(admin);
     return(new SuccessResult(Messages.Success));
 }
 public Admin Update(Admin admin)
 {
     return(_dal.Update(admin));
 }
示例#9
0
 public bool Update(Admin entity)
 {
     return(_adminDal.Update(entity));
 }
 public IResult Update(Admin entity)
 {
     return(_adminDal.Update(entity));
 }
示例#11
0
 public void Update(Admin entity)
 {
     _adminDal.Update(entity);
 }
 public Admin Update(Admin admin)
 {
     return(AutoMapperHelper.MapToSameType(_adminDal.Update(admin)));
 }