public static ExcursieDTO[] getDTO(Excursie[] excursii) { ExcursieDTO[] frDTO = new ExcursieDTO[excursii.Length]; for (int i = 0; i < excursii.Length; i++) { frDTO[i] = getDTO(excursii[i]); } return(frDTO); }
private static Excursie getFromDTO(ExcursieDTO excursieDTO) { int id = excursieDTO.Id; string destinatie = excursieDTO.Destinatie; string data = excursieDTO.Data; string aeroport = excursieDTO.Aeroport; int nrLocuri = excursieDTO.NrLocuri; return(new Excursie(id, destinatie, data, aeroport, nrLocuri)); }