public User ValidateUserAsync(ValidateUserDto validateUser) { var hashPassword = _hashProvider.HashMd5(validateUser.Password); var user = _userRepository.GetUserAsync(validateUser.Login, hashPassword); var mappedUser = _mapperProvider.CreateMapByProfile <ScientificDatabase.Models.User, User, BaseProfile>(user); return(mappedUser); }