public void UpdateDto(MemberForRegisterDto memberForRegisterDto, string password, string mail) { var value = GetByMail(mail); byte[] passwordHash, passwordSalt; HashingHelper.CreatePasswordHash(password, out passwordHash, out passwordSalt); value.PasswordHash = passwordHash; value.PasswordSalt = passwordSalt; value.EMail = mail; value.Name = memberForRegisterDto.FirstName; value.LastName = memberForRegisterDto.LastName; value.Education = memberForRegisterDto.Education; value.UserName = memberForRegisterDto.UserName; value.PhoneNumber = memberForRegisterDto.PhoneNumber; value.Image = memberForRegisterDto.Image; _memberDal.Update(value); }
public void Update(Member entity) { if (_memberDal.Get(p => p.TcNo == entity.TcNo) == null) { if (_kpsService.ValidateUser(entity)) { _memberDal.Update(MapperHelper.MapToSameType(entity)); } } }
public bool Update(Member member) { bool result = _memberDal.Update(member); if (result) { return(true); } return(false); }
public IResult Update(Member member) { _memberDal.Update(member); return(new SuccessResult()); }
public Member Update(Member member) { ValidateMember(member); return(_memberDal.Update(member)); }
public void Update(Member member) { _memberDal.Update(member); }