Ejemplo n.º 1
0
        public EditProfileDto GetEditProfile(int userId)
        {
            var adminUser = _adminUserRepository.Find(userId);

            return(adminUser == null ?
                   null :
                   Mapper.Map <EditProfileDto>(adminUser));
        }
        private bool ValidateCurrentPassword(ChangePasswordDto dto, string password)
        {
            var adminUser = _adminUserRepository.Find(dto.Id);

            return(SecurityHelper.VerifyHash(dto.CurrentPassword, adminUser.Password, adminUser.Salt));
        }