Ejemplo n.º 1
0
        public async Task <UserShortDto> GetUser(long id)
        {
            _logger.LogInformation($"Users Get {id}");
            var res = await Task.FromResult(UeserMapper.ToShortDto(_userSrvice.getUser(id)));

            return(res);
        }
Ejemplo n.º 2
0
        public async Task <List <UserShortDto> > GetAllUsers()
        {
            _logger.LogInformation("Users GetAll");
            var res = await Task.FromResult(_userSrvice
                                            .getAllUsers()
                                            .ConvertAll(x => UeserMapper.ToShortDto(x))
                                            );

            return(res);
        }