Esempio n. 1
0
        public ActionResult CreateVoucherType(VoucherType voucherType)
        {
            voucherTypes.Insert(voucherType);
            voucherTypes.Commit();

            return RedirectToAction("VoucherTypeList");
        }
Esempio n. 2
0
        public ActionResult CreateVoucherType()
        {
            var model = new VoucherType();

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

            return RedirectToAction("VoucherTypeList");
        }