public ActionResult DeleteConfirmed(int id) { Reserveviptable reserveviptable = db.Reserveviptables.Find(id); db.Reserveviptables.Remove(reserveviptable); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Name,BarName,PhoneNumber,PartySize,Email")] Reserveviptable reserveviptable) { if (ModelState.IsValid) { db.Entry(reserveviptable).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(reserveviptable)); }
public ActionResult Create([Bind(Include = "Id,Name,BarName,PhoneNumber,PartySize,Email")] Reserveviptable reserveviptable) { if (ModelState.IsValid) { db.Reserveviptables.Add(reserveviptable); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(reserveviptable)); }
// GET: Reserveviptables/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Reserveviptable reserveviptable = db.Reserveviptables.Find(id); if (reserveviptable == null) { return(HttpNotFound()); } return(View(reserveviptable)); }