Ejemplo n.º 1
0
 public ActionResult <List <Unidade> > Get()
 {
     try {
         return(Ok(_unidadeService.Get()));
     } catch (Exception e) {
         return(BadRequest("Erro ao buscar Unidades"));
     }
 }
Ejemplo n.º 2
0
 public ActionResult <List <Unidade> > Get() =>
 _unidadeService.Get();