public ActionResult EditPromotionWay(int promotionId) { var model = new PromotionWay(); if (promotionId > 0) { model = _promotionWayManager.GetPromotionWay(promotionId); } return(View(model)); }
public bool UpdatePromotionWay(PromotionWay model) { return(_dataAccess.UpdateEntity(model) > 0); }
public int AddPromotionWay(PromotionWay model) { return(_dataAccess.AddEntity(model)); }