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