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