public static void updateCommune(CommuneViewModel p) { CommuneDAO.updateCommune(new CommuneDAO(p.idCommuneProperty, p.nomCommuneProperty, p.departementCommune.idDepartementProperty)); }
public static void updateCommune(CommuneViewModel d) { CommuneDAO.updateCommune(new CommuneDAO(d.idCommuneProperty, d.nomCommuneProperty, d.codePostalProperty, d.departementProperty.idDepartementProperty)); }