Example #1
0
        public ActionResult AddProductGroup(ProductGroupViewModel model)
        {
            if (!ModelState.IsValid)
                return View(model);

            model.AddPropductGroup();
            return RedirectToAction("ProductGroup");
        }
Example #2
0
 public ActionResult ProductGroup()
 {
     ProductGroupViewModel model = new ProductGroupViewModel();
     model.GetList();
     return View(model);
 }
Example #3
0
 public ActionResult AddProductGroup()
 {
     ProductGroupViewModel model = new ProductGroupViewModel();
     return View(model);
 }
Example #4
0
 public ActionResult EditProductGroup(int id)
 {
     ProductGroupViewModel model = new ProductGroupViewModel();
     model.Get(id);
     return View(model);
 }