コード例 #1
0
 public IHttpActionResult Gets()
 {
     try
     {
         var category = _categoryService.GetAllCategory();
         return(Json(category));
     }
     catch (Exception ex)
     {
         ErrorSignal.FromCurrentContext().Raise(ex);
         return(BadRequest("Get Categories Failed"));
     }
 }