public ActionResult DeleteConfirmed(int id) { var preSlot = _db.FindById(Convert.ToInt32(id)); _db.Remove(id); return(RedirectToAction("Index")); }