Example #1
0
        public ActionResult CreateVoucherType(VoucherType voucherType)
        {
            voucherTypes.Insert(voucherType);
            voucherTypes.Commit();

            return RedirectToAction("VoucherTypeList");
        }
Example #2
0
        public ActionResult CreateVoucherType()
        {
            var model = new VoucherType();

            return View(model);
        }
Example #3
0
        public ActionResult EditVoucherType(VoucherType voucherType)
        {
            voucherTypes.Update(voucherType);
            voucherTypes.Commit();

            return RedirectToAction("VoucherTypeList");
        }