public async Task <UserShortDto> GetUser(long id) { _logger.LogInformation($"Users Get {id}"); var res = await Task.FromResult(UeserMapper.ToShortDto(_userSrvice.getUser(id))); return(res); }
public async Task <List <UserShortDto> > GetAllUsers() { _logger.LogInformation("Users GetAll"); var res = await Task.FromResult(_userSrvice .getAllUsers() .ConvertAll(x => UeserMapper.ToShortDto(x)) ); return(res); }