public ActionResult <IEnumerable <Seguro> > Get()
 {
     try
     {
         return(Ok(_seguroService.GetAll()));
     }
     catch (Exception ex)
     {
         return(StatusCode(500));
     }
 }
Example #2
0
 public ActionResult Get()
 {
     return(Ok(
                seguroService.GetAll()
                ));
 }