public async Task <UserDto> GetByCredentials(string username, string password) { var user = await _userRepository.GetByCredentials(username, password); return(UserRolesFactoryMapper.MapToDto(user)); }
public async Task <IEnumerable <UserDto> > GetAllUsersAsync() { var userList = await _userRepository.GetAllUsersAsync(); return(UserRolesFactoryMapper.MapToDto(userList.ToList())); }