Exemple #1
0
 public ActionResult <IEnumerable <Incident> > Get()
 {
     try
     {
         return(Ok(_incidentService.GetAllIncidents()));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }