public static void DeleteDossier(int dossierId) { using (PersonalFinancesDBEntities context = new PersonalFinancesDBEntities()) { context.DeleteDossier(dossierId); } }