public ActionResult AddMembershipPackage(MembershipPackage membership) { if (membership != null) { membership.Id = Guid.NewGuid(); membershipPackageService.Add(membership); return Json(true, JsonRequestBehavior.AllowGet); } return Json(false, JsonRequestBehavior.AllowGet); }
public ActionResult EditMembershipPackage(MembershipPackage membership) { if (membership != null && membership.Id!= Guid.Empty) { membershipPackageService.Update(membership); return Json(true, JsonRequestBehavior.AllowGet); } return Json(false, JsonRequestBehavior.AllowGet); }