コード例 #1
0
 public IActionResult GetCategories()
 {
     try
     {
         return(Ok(_repo.GetCategories()));
     }
     catch (Exception e)
     {
         return(NotFound(e.InnerException.Message));
     }
 }