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