Exemplo n.º 1
0
        public async Task <IActionResult> Get()
        {
            var items = await _repository.GetAll();

            _logger.LogTrace(LogEventId, AwesomeMethods.ConvertDataForLog(items, _converter));

            return(Ok(_response
                      .AddData(Mapper.Map <IEnumerable <TViewModel> >(items))
                      .Get()));
        }