public ActionResult PromotionLadderIndex() { var model = new PromotionLadderModel { Id = GetParams <int>("id"), Name = GetParams <string>("name"), PromotionId = GetParams <int>("promotionid"), Totalamount = GetParams <decimal>("totalamount"), Reduction = GetParams <decimal>("reduction"), Status = GetParams <int>("status"), Createtime = GetParams <DateTime>("createtime"), Updatetime = GetParams <DateTime>("updatetime"), }; return(View(model)); }
public static PromotionLadderPO ToPO(this PromotionLadderModel item) { if (item == null) { return(null); } return(new PromotionLadderPO { Id = item.Id, Name = item.Name, PromotionId = item.PromotionId, Totalamount = item.Totalamount, Reduction = item.Reduction, Status = item.Status, Createtime = item.Createtime, Updatetime = item.Updatetime, }); }
public bool Save(PromotionLadderModel model) { return(new PromotionLadderService().Save(model)); }
/// <summary> /// /// </summary> /// <param name="model"></param> /// <returns></returns> public bool Save(PromotionLadderModel model) { return(PromotionLadderRepository.Save(model.ToPO())); }