public IActionResult Listar() { try { return(Ok(repositorio.Listar())); } catch (Exception exc) { return(BadRequest(exc.Message)); } }
public IActionResult Listar() { List <EstudiosDomain> estudios = _estudiosRepository.Listar(); if (estudios == null) { return(NotFound("Nenhum estudio encontrado")); } return(Ok(estudios)); }
public IActionResult Get() { return(Ok(_estudiosRepository.Listar())); }