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