public static bool DeleteAll(string userName) { List <DTOClient> listClient = DAOClient.getListClient(); foreach (DTOClient client in listClient) { if (client.UserName == userName) { return(DAOData.DeleteAll(client.IDClient)); } } return(false); }
public static List <DTOClient> getListClient() { return(DAOClient.getListClient()); }