public void DeleteProductCategory([FromUri] int id)
 {
     ProductCategoryDB.DeleteProductCategory(id);
 }
 public ProductCategory GetProductCategory([FromUri] int id)
 {
     return(ProductCategoryDB.GetProductCategory(id));
 }
 public ProductCategory UpdateProductCategory([FromBody] ProductCategory productCategory)
 {
     return(ProductCategoryDB.UpdateProductCategory(productCategory));
 }
 public IEnumerable <ProductCategory> GetProductCategories([FromUri] int?parentId = null, [FromUri] ActiveStatusEnum active = ActiveStatusEnum.Active)
 {
     return(ProductCategoryDB.GetProductCategories(parentId, active));
 }