コード例 #1
0
ファイル: ReferenceController.cs プロジェクト: ykcycvl/Agat
        public ActionResult AddProductGroup(ProductGroupViewModel model)
        {
            if (!ModelState.IsValid)
                return View(model);

            model.AddPropductGroup();
            return RedirectToAction("ProductGroup");
        }
コード例 #2
0
ファイル: ReferenceController.cs プロジェクト: ykcycvl/Agat
 public ActionResult ProductGroup()
 {
     ProductGroupViewModel model = new ProductGroupViewModel();
     model.GetList();
     return View(model);
 }
コード例 #3
0
ファイル: ReferenceController.cs プロジェクト: ykcycvl/Agat
 public ActionResult AddProductGroup()
 {
     ProductGroupViewModel model = new ProductGroupViewModel();
     return View(model);
 }
コード例 #4
0
ファイル: ReferenceController.cs プロジェクト: ykcycvl/Agat
 public ActionResult EditProductGroup(int id)
 {
     ProductGroupViewModel model = new ProductGroupViewModel();
     model.Get(id);
     return View(model);
 }