コード例 #1
0
 public ActionResult <IEnumerable <Rule> > GetAll()
 {
     try
     {
         var result = _ruleService.FindAll();
         return(Ok(new JsonResult(result)));
     }
     catch (Exception ex)
     {
         return(NotFound(ex));
     }
 }