public JsonResult GetDiscounts(int ShowId, int UserId, int HandlerType, int usid) { var discountMgr = new DiscountManager(); var paymentSummary = discountMgr.GetDiscounts(ShowId, UserId, HandlerType, true); paymentSummary.remove(ChargableTypes.TRANSACTION); if (usid > -1) { UserShows us = new UserShows(usid); us.HandlerType = HandlerType; us.Save(); } return Json(new { Status = 0, PaymentSummary = paymentSummary }); }
private PaymentSummary CreatePaymentSummary(UserShows userShow, bool AddAdminCharge = false, bool campingFull = false) { var paymentSummary = new PaymentSummary(); var thisShow = new Shows(userShow.ShowID); var DiscountMgr = new DiscountManager(); return DiscountMgr.GetDiscounts(userShow.ShowID, userShow.Userid, userShow.HandlerType, AddAdminCharge, campingFull); }