public JsonResult Discounts(DiscountChargesDto DiscountCharges) { ShowCharges sc = new ShowCharges(DiscountCharges.ClsId); sc.Showid = DiscountCharges.ShowId; sc.Name = DiscountCharges.Name; sc.ChargeRate = DiscountCharges.ChargeTypeId; return Json(new { Status = 0, ClsId = sc.save() }); }
public static ShowCharges CreateCharge(String chargeName, Decimal charge, int ShowID) { ShowCharges showCharges = new ShowCharges(); showCharges.ChargeName = chargeName; showCharges.ChargeRate = charge; showCharges.Showid = ShowID; showCharges.save(); return showCharges; }