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); }
public bool Update(Admin model) { try { return(adminDal.Update(model)); } catch (Exception ex) { throw ex; } }
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); }
public void AdminUpdate(Admin admin) { _adminDal.Update(admin); }
public void Update(Admin entity) { ValidationTool.Validate(validator, entity); dal.Update(entity); }
public void AdminUpdate(Admin admin) { admin.AdminUserName = lm.Encrypt(admin.AdminUserName); //admin.AdminPassword = lm.PasswordHash(admin.AdminPassword); _adminDal.Update(admin); }
public IResult Update(Admin admin) { _adminDal.Update(admin); return(new SuccessResult(Messages.Success)); }
public Admin Update(Admin admin) { return(_dal.Update(admin)); }
public bool Update(Admin entity) { return(_adminDal.Update(entity)); }
public IResult Update(Admin entity) { return(_adminDal.Update(entity)); }
public void Update(Admin entity) { _adminDal.Update(entity); }
public Admin Update(Admin admin) { return(AutoMapperHelper.MapToSameType(_adminDal.Update(admin))); }