public ActionResult DeleteConfirmed(int id) { #region EF6 Code //Glass glass = db.GlassSet.Find(id); //db.GlassSet.Remove(glass); //db.SaveChanges(); //return RedirectToAction("Index"); #endregion _repo.DeleteGlass(id); return(RedirectToAction("Index")); }