Exemple #1
0
        public static ObservableCollection <UniversityModel> Convert(UniversityDto[] cityDtos)
        {
            var universities = new ObservableCollection <UniversityModel>();

            foreach (var universityDto in cityDtos)
            {
                universities.Add(UniversityModel.Convert(universityDto));
            }
            return(universities);
        }
Exemple #2
0
        public static UniversityModel Convert(UniversityDto cityDto)
        {
            var university = new UniversityModel
            {
                ShortName = cityDto.ShortName,
                Id        = cityDto.Id
            };

            return(university);
        }