public ActionResult <ProductOderDemoContext> getAllRefProductCategories()
 {
     if (AuthorizeSetController.setAuthorize(setToken()))
     {
         return(Ok(_resRefProductCategories.getAllRefProductCategories()));
     }
     else
     {
         return(Unauthorized());
     }
 }
Beispiel #2
0
 public ActionResult <RefProductCategories> getAllRefProductCategories()
 {
     try
     {
         var listRefProductCategories = _resRefProductCategories.getAllRefProductCategories();
         return(Ok(listRefProductCategories));
     }
     catch (Exception)
     {
         return(Ok(_errorRead));
     }
 }