public ActionResult JDiscountGroup(int id = 0) { DiscountGroupModel model = null; using (DiscountContext context = new DiscountContext()) { model = context.GetDiscountGroup(id); } return(Json(model, JsonRequestBehavior.AllowGet)); }
public ActionResult EditGroup(int id = 0) { DiscountGroupModel model = null; using (DiscountContext context = new DiscountContext()) { model = context.GetDiscountGroup(id); } return(View("EditGroup", model)); }