public ActionResult DeleteConfirmed(int id)
        {
            FinishedPickups finishedPickups = db.FinishedPickups.Find(id);

            db.FinishedPickups.Remove(finishedPickups);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,CustomerId,EmployeeId,FinishedDates")] FinishedPickups finishedPickups)
 {
     if (ModelState.IsValid)
     {
         db.Entry(finishedPickups).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(finishedPickups));
 }
        public ActionResult Create([Bind(Include = "Id,CustomerId,EmployeeId,FinishedDates")] FinishedPickups finishedPickups)
        {
            if (ModelState.IsValid)
            {
                db.FinishedPickups.Add(finishedPickups);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(finishedPickups));
        }
        // GET: FinishedPickups/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            FinishedPickups finishedPickups = db.FinishedPickups.Find(id);

            if (finishedPickups == null)
            {
                return(HttpNotFound());
            }
            return(View(finishedPickups));
        }