public IHttpActionResult AddProductSubCategory([FromBody] ProductSubCategory productSubCategory)
 {
     try
     {
         return(Ok(ProductSubCategoryManager.AddProductSubCategory(productSubCategory)));
     }
     catch (Exception exception)
     {
         return(InternalServerError(exception));
     }
 }
 public IHttpActionResult GetSubCategoryByCategoryId([FromBody] IdViewModel idViewModel)
 {
     try
     {
         return(Ok(ProductSubCategoryManager.GetSubcategoryByCategory(idViewModel.Id)));
     }
     catch (Exception exception)
     {
         return(InternalServerError(exception));
     }
 }
 public IHttpActionResult GetProductSubCategories()
 {
     try
     {
         return(Ok(ProductSubCategoryManager.GetProducSubtCategories()));
     }
     catch (Exception exception)
     {
         return(InternalServerError(exception));
     }
 }
 public IHttpActionResult GetProductCategoryList([FromBody] SearchViewModel viewModel)
 {
     try
     {
         return(Ok(ProductSubCategoryManager.GetProductCategoryList(viewModel)));
     }
     catch (Exception exception)
     {
         return(InternalServerError(exception));
     }
 }
 public IHttpActionResult DeleteProductSubCategory([FromBody] IdViewModel idViewModel)
 {
     try
     {
         ProductSubCategoryManager.DeleteProductSubCategory(idViewModel.Id);
         return(Ok());
     }
     catch (Exception exception)
     {
         return(InternalServerError(exception));
     }
 }