public static ObservableCollection <UniversityModel> Convert(UniversityDto[] cityDtos) { var universities = new ObservableCollection <UniversityModel>(); foreach (var universityDto in cityDtos) { universities.Add(UniversityModel.Convert(universityDto)); } return(universities); }
public static UniversityModel Convert(UniversityDto cityDto) { var university = new UniversityModel { ShortName = cityDto.ShortName, Id = cityDto.Id }; return(university); }