public ActionResult DeleteUser(ProfileModel utilisM) { UtilisateurRepository ur = new UtilisateurRepository(ConfigurationManager.ConnectionStrings["My_Asptest_Cnstr"].ConnectionString); bool userIsDeleted = ur.delete(utilisM.IdUtilisateur); TempData["userDeleted"] = userIsDeleted; return RedirectToAction("Index"); }