示例#1
0
 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);
 }
示例#2
0
 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);
 }