コード例 #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()));
 }