public async Task <IActionResult> BuscarModulos()
        {
            try
            {
                var modulos = await _moduloRepository.ObterTodos();

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