public IActionResult Incidents(int results) { try { var model = _incidentData.GetAll().Take(results); return(View(model)); } catch (Exception e) { return(new ObjectResult(e.Message)); } }
public IActionResult GetAll() { return(Ok(_incidentData.GetAll())); }