コード例 #1
0
ファイル: AdminController.cs プロジェクト: Robooto/eCommerce
        public ActionResult CreateVoucherType(VoucherType voucherType)
        {
            voucherTypes.Insert(voucherType);
            voucherTypes.Commit();

            return RedirectToAction("VoucherTypeList");
        }
コード例 #2
0
ファイル: AdminController.cs プロジェクト: Robooto/eCommerce
        public ActionResult CreateVoucherType()
        {
            var model = new VoucherType();

            return View(model);
        }
コード例 #3
0
ファイル: AdminController.cs プロジェクト: Robooto/eCommerce
        public ActionResult EditVoucherType(VoucherType voucherType)
        {
            voucherTypes.Update(voucherType);
            voucherTypes.Commit();

            return RedirectToAction("VoucherTypeList");
        }