예제 #1
0
        public IActionResult Incidents(int results)
        {
            try
            {
                var model = _incidentData.GetAll().Take(results);

                return(View(model));
            }
            catch (Exception e)
            {
                return(new ObjectResult(e.Message));
            }
        }
예제 #2
0
 public IActionResult GetAll()
 {
     return(Ok(_incidentData.GetAll()));
 }