Пример #1
0
        public async Task <IActionResult> BuscarModulos()
        {
            try
            {
                var modulos = await _moduloRepository.ObterTodos();

                return(Response(modulos));
            }
            catch (Exception ex)
            {
                return(ResponseErro(ex));
            }
        }
Пример #2
0
 public IEnumerable <ModuloViewModel> ObterTodos()
 {
     return(Mapper.Map <IEnumerable <ModuloViewModel> >(_moduloRepository.ObterTodos()));
 }