Exemple #1
0
        public ActionResult <IEnumerable <LogsDTO> > Get()
        {
            var log = _logsService.Logs().ToList();

            if (log.Any())
            {
                var retorno = _mapper.Map <List <LogsDTO> >(log);
                return(Ok(retorno));
            }
            else
            {
                return(NoContent());
            }
        }