コード例 #1
0
 public IHttpActionResult GetProductCategoryFromChildToParentForSiteMapMenu(ViewModel.tblProductCategory obj)
 {
     try
     {
         JArray JsonContentCategory = BisProductCategory.GetProductCategoryFromChildToParentForSiteMapMenu(obj);
         return(Ok(JsonContentCategory));
     }
     catch
     {
         return(NotFound());
     }
 }
コード例 #2
0
 public IHttpActionResult FillProductCategoryWithMasterProductForSOL(ViewModel.tblProductCategory obj)
 {
     try
     {
         JArray JsonContentCategory = BisProductCategory.GetDataWithMasterProductForSOL(obj);
         return(Ok(JsonContentCategory));
     }
     catch
     {
         return(NotFound());
     }
 }
コード例 #3
0
 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());
     }
 }
コード例 #4
0
        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());
            }
        }