コード例 #1
0
        public ActionResult DiscountEdit(DiscountsModel model)
        {
            if (ModelState.IsValid)
            {
                _serviceDiscounts.Update(model.ModelToEnity(true));
            }

            return RedirectToAction("DiscountList");
        }
コード例 #2
0
        public ActionResult DiscountInsert(DiscountsModel model)
        {
            if (ModelState.IsValid)
            {
                _serviceDiscounts.Insert(model.ModelToEnity());
            }

            return RedirectToAction("DiscountList");
        }