public ActionResult DeleteConfirmed(int id) { NextClientNumber nextclientnumber = db.NextClientNumbers.Find(id); db.NextClientNumbers.Remove(nextclientnumber); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /NextClientNumber/Delete/5 public ActionResult Delete(int id = 0) { NextClientNumber nextclientnumber = db.NextClientNumbers.Find(id); if (nextclientnumber == null) { return(HttpNotFound()); } return(View(nextclientnumber)); }
public ActionResult Edit(NextClientNumber nextclientnumber) { if (ModelState.IsValid) { db.Entry(nextclientnumber).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nextclientnumber)); }
public ActionResult Create(NextClientNumber nextclientnumber) { if (ModelState.IsValid) { db.NextClientNumbers.Add(nextclientnumber); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nextclientnumber)); }
public ActionResult Create(NextClientNumber nextclientnumber) { if (ModelState.IsValid) { db.NextClientNumbers.Add(nextclientnumber); db.SaveChanges(); return RedirectToAction("Index"); } return View(nextclientnumber); }
// // GET: /NextClientNumber/ public ActionResult Index() { return(View(NextClientNumber.GetInstance())); }
public ActionResult Edit(NextClientNumber nextclientnumber) { if (ModelState.IsValid) { db.Entry(nextclientnumber).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(nextclientnumber); }
// // GET: /NextClientNumber/ public ActionResult Index() { //return View(db.NextClientNumbers.ToList()); return(View(NextClientNumber.GetInstance())); }