public ActionResult Create(NextChequingAccount nextchequingaccount) { if (ModelState.IsValid) { db.NextChequingAccounts.Add(nextchequingaccount); db.SaveChanges(); return RedirectToAction("Index"); } return View(nextchequingaccount); }
// // GET: /NextChequingAccount/ public ActionResult Index() { return(View(NextChequingAccount.GetInstance())); }
public ActionResult Edit(NextChequingAccount nextchequingaccount) { if (ModelState.IsValid) { db.Entry(nextchequingaccount).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(nextchequingaccount); }
// // GET: /NextChequingAccount/ public ActionResult Index() { //return View(db.NextChequingAccounts.ToList()); return(View(NextChequingAccount.GetInstance())); }