public ActionResult PaymentSetupsCreate(PaymentSetup paymentSetup) { if (ModelState.IsValid) { db.PaymentSetup.Add(paymentSetup); db.SaveChanges(); Session["currSetupKey"] = paymentSetup.pKey; return RedirectToAction("PaymentSetupsIndex",new { id = paymentSetup.EventKey }); } return View(paymentSetup); }
// GET: PaymentSetups/Create public ActionResult PaymentSetupsCreate(int id) { PaymentSetup ps = new PaymentSetup(); ps.EventKey = id; return View(ps); }