public ActionResult DeleteConfirmed(int id) { PickUpConfirmation pickUpConfirmation = db.pickUpConfirmations.Find(id); db.pickUpConfirmations.Remove(pickUpConfirmation); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Confirmation")] PickUpConfirmation pickUpConfirmation) { if (ModelState.IsValid) { db.Entry(pickUpConfirmation).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pickUpConfirmation)); }
public ActionResult Create([Bind(Include = "Id,Confirmation")] PickUpConfirmation pickUpConfirmation) { if (ModelState.IsValid) { db.pickUpConfirmations.Add(pickUpConfirmation); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pickUpConfirmation)); }
// GET: PickUpConfirmations/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } PickUpConfirmation pickUpConfirmation = db.pickUpConfirmations.Find(id); if (pickUpConfirmation == null) { return(HttpNotFound()); } return(View(pickUpConfirmation)); }