Exemple #1
0
 public void ProductCategorySave(ProductCategoryModel productCategory)
 {
     new MongoDacHelper("productCategory").Save<ProductCategoryModel>(productCategory);
 }
Exemple #2
0
 public JsonResult Insert(string name = "")
 {
     bool result = true;
     try
     {
         CompanyModel company = new Dac_Company().CompanyInfoDetail(ObjectId.Parse(ConfigurationManager.AppSettings["COM"]));
         ProductCategoryModel model = new ProductCategoryModel();
         model.Company = company;
         model.ProductCategoryNm = name;
         new Dac_Product().ProductCategorySave(model);
     }
     catch (Exception ex)
     {
         result = false;
     }
     return Json(result);
 }