Exemplo n.º 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);
        }
Exemplo n.º 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));
         }
     }
 }
Exemplo n.º 3
0
        public bool Update(Member member)
        {
            bool result = _memberDal.Update(member);

            if (result)
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 4
0
 public IResult Update(Member member)
 {
     _memberDal.Update(member);
     return(new SuccessResult());
 }
Exemplo n.º 5
0
 public Member Update(Member member)
 {
     ValidateMember(member);
     return(_memberDal.Update(member));
 }
Exemplo n.º 6
0
 public void Update(Member member)
 {
     _memberDal.Update(member);
 }