Beispiel #1
0
 public ActionResult Edit(ShopGradeModel shopG)
 {
     if (!base.ModelState.IsValid)
     {
         return(View(shopG));
     }
     ServiceHelper.Create <IShopService>().UpdateShopGrade(shopG);
     return(RedirectToAction("Management"));
 }
 public ActionResult Add(ShopGradeModel shopG)
 {
     if (ModelState.IsValid)
     {
         _iShopService.AddShopGrade(shopG);
         return(RedirectToAction("Management"));
     }
     return(View(shopG));
 }