Esempio n. 1
0
 public ActionResult <IEnumerable <Contractor> > Get()
 {
     try
     {
         return(Ok(_service.Find()));
     }
     catch (System.Exception error)
     {
         return(BadRequest(error.Message));
     }
 }