コード例 #1
0
 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()
     });
 }
コード例 #2
0
 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;
 }