public ActionResult CreateVoucherType(VoucherType voucherType) { voucherTypes.Insert(voucherType); voucherTypes.Commit(); return RedirectToAction("VoucherTypeList"); }
public ActionResult CreateVoucherType() { var model = new VoucherType(); return View(model); }
public ActionResult EditVoucherType(VoucherType voucherType) { voucherTypes.Update(voucherType); voucherTypes.Commit(); return RedirectToAction("VoucherTypeList"); }