Beispiel #1
0
        public async Task <UserDto> GetByCredentials(string username, string password)
        {
            var user = await _userRepository.GetByCredentials(username, password);

            return(UserRolesFactoryMapper.MapToDto(user));
        }
Beispiel #2
0
        public async Task <IEnumerable <UserDto> > GetAllUsersAsync()
        {
            var userList = await _userRepository.GetAllUsersAsync();

            return(UserRolesFactoryMapper.MapToDto(userList.ToList()));
        }