// GET: PaymentSetups/Edit/5
        public ActionResult PaymentSetupsEdit(int? id)
        {
            if (id == null)
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
            }
            PaymentSetupViewModel psvm = new PaymentSetupViewModel(id);
            Session["currSetupKey"] = id;

            return View(psvm);
        }
        public ActionResult PaymentSetupsEdit(PaymentSetupViewModel psvm)
        {
            PaymentSetup paymentSetup = psvm.paymentSetup;

            if (ModelState.IsValid)
            {
                db.Entry(paymentSetup).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("PaymentSetupsIndex"));
            }
            return(View(psvm));
        }
        // GET: PaymentSetups/Edit/5
        public ActionResult PaymentSetupsEdit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PaymentSetupViewModel psvm = new PaymentSetupViewModel(id);

            Session["currSetupKey"] = id;


            return(View(psvm));
        }
        public ActionResult PaymentSetupsEdit(PaymentSetupViewModel psvm)
        {
            PaymentSetup paymentSetup = psvm.paymentSetup;

            if (ModelState.IsValid)
            {
                db.Entry(paymentSetup).State = EntityState.Modified;
                db.SaveChanges();
                return RedirectToAction("PaymentSetupsIndex");
            }
            return View(psvm);
        }