public IHttpActionResult GetProductCategoryFromChildToParentForSiteMapMenu(ViewModel.tblProductCategory obj) { try { JArray JsonContentCategory = BisProductCategory.GetProductCategoryFromChildToParentForSiteMapMenu(obj); return(Ok(JsonContentCategory)); } catch { return(NotFound()); } }
public IHttpActionResult FillProductCategoryWithMasterProductForSOL(ViewModel.tblProductCategory obj) { try { JArray JsonContentCategory = BisProductCategory.GetDataWithMasterProductForSOL(obj); return(Ok(JsonContentCategory)); } catch { return(NotFound()); } }
public IHttpActionResult FillProductCategoryFromParentToMaster(object obj) { try { JObject JsonObject = JObject.Parse(obj.ToString()); ViewModel.tblProductCategory ProductCategorySearch = new ViewModel.tblProductCategory(); ProductCategorySearch.IDSupplier = JsonObject["IDSupplier"].ToString().StringToGuid(); JArray JsonContentCategory = BisProductCategory.GetProductCategoryJsonDataFromParentToMaster(ProductCategorySearch); return(Ok(JsonContentCategory)); } catch { return(NotFound()); } }
public IHttpActionResult FillProductCategoryfromParentToMasterForSite(object obj) { try { JObject JsonObject = JObject.Parse(obj.ToString()); ViewModel.tblProductCategory SearchProductCategory = new ViewModel.tblProductCategory(); SearchProductCategory.IDXSupplier = JsonObject["IDXSupplier"].ToString().StringToInt(); SearchProductCategory.IDXProductCategory = JsonObject["IDXParentCategory"].ToString().StringToInt(); JArray JsonContentCategory = BisProductCategory.GetJsonDataFromParentToChildForSite(SearchProductCategory); return(Ok(JsonContentCategory)); } catch { return(NotFound()); } }