Пример #1
0
        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);
        }
Пример #2
0
 public void Update(Member entity)
 {
     if (_memberDal.Get(p => p.TcNo == entity.TcNo) == null)
     {
         if (_kpsService.ValidateUser(entity))
         {
             _memberDal.Update(MapperHelper.MapToSameType(entity));
         }
     }
 }
Пример #3
0
        public bool Update(Member member)
        {
            bool result = _memberDal.Update(member);

            if (result)
            {
                return(true);
            }

            return(false);
        }
Пример #4
0
 public IResult Update(Member member)
 {
     _memberDal.Update(member);
     return(new SuccessResult());
 }
Пример #5
0
 public Member Update(Member member)
 {
     ValidateMember(member);
     return(_memberDal.Update(member));
 }
Пример #6
0
 public void Update(Member member)
 {
     _memberDal.Update(member);
 }