Example #1
0
 public IActionResult Listar()
 {
     try {
         return(Ok(repositorio.Listar()));
     } catch (Exception exc) {
         return(BadRequest(exc.Message));
     }
 }
Example #2
0
        public IActionResult Listar()
        {
            List <EstudiosDomain> estudios = _estudiosRepository.Listar();

            if (estudios == null)
            {
                return(NotFound("Nenhum  estudio encontrado"));
            }

            return(Ok(estudios));
        }
Example #3
0
 public IActionResult Get()
 {
     return(Ok(_estudiosRepository.Listar()));
 }