public ActionResult Delete(int id, RessourceModel cm) { Ressource c = new Ressource(); c = cs.Get(t => t.id == id); cs.Delete(c); cs.Commit(); return(RedirectToAction("Index")); }