public ActionResult Recharge(MembershipReCharge membershipReCharge) { if (!ModelState.IsValid) { return View(membershipReCharge); } if (membershipRepository.FindByMembershipId(membershipReCharge.MembershipId) == null) { ModelState.AddModelError("MembershipId", "Membership Id not exists."); return View(membershipReCharge); } membershipRepository.Recharge(membershipReCharge); TempData["MembershipId"] = membershipReCharge.MembershipId; return RedirectToAction("RechargeSuccess"); }
public void Recharge(MembershipReCharge membershipReCharge) { ReCharges.Add(membershipReCharge); }
public ViewResult Recharge(CustomUserIdentity customUserIdentity) { var membershipReCharge = new MembershipReCharge {BranchName = customUserIdentity.BranchName}; return View(membershipReCharge); }
public void SetUp() { membershipReCharge = new MembershipReCharge { MembershipId = MembershipId}; }