public ActionResult DeleteConfirmed(int id) { NextSavingsAccount nextsavingsaccount = db.NextSavingsAccounts.Find(id); db.NextSavingsAccounts.Remove(nextsavingsaccount); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /NextSavingsAccount/Delete/5 public ActionResult Delete(int id = 0) { NextSavingsAccount nextsavingsaccount = db.NextSavingsAccounts.Find(id); if (nextsavingsaccount == null) { return(HttpNotFound()); } return(View(nextsavingsaccount)); }
public ActionResult Edit(NextSavingsAccount nextsavingsaccount) { if (ModelState.IsValid) { db.Entry(nextsavingsaccount).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nextsavingsaccount)); }
public ActionResult Create(NextSavingsAccount nextsavingsaccount) { if (ModelState.IsValid) { db.NextSavingsAccounts.Add(nextsavingsaccount); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nextsavingsaccount)); }
public ActionResult Create(NextSavingsAccount nextsavingsaccount) { if (ModelState.IsValid) { db.NextSavingsAccounts.Add(nextsavingsaccount); db.SaveChanges(); return RedirectToAction("Index"); } return View(nextsavingsaccount); }
// // GET: /NextSavingsAccount/ public ActionResult Index() { return(View(NextSavingsAccount.GetInstance())); }
// // GET: /NextSavingsAccount/ public ActionResult Index() { //Returns the next savings account instance. return(View(NextSavingsAccount.GetInstance())); }
public ActionResult Edit(NextSavingsAccount nextsavingsaccount) { if (ModelState.IsValid) { db.Entry(nextsavingsaccount).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(nextsavingsaccount); }