private ApartComplexesGroupData CreateApartComplexData(CityData cityData, HtmlNode parsedApartComplexGroupData) { return(new ApartComplexesGroupData { CityName = cityData.Name, Url = _pageHandler.CreateLunUaUrl(_htmlParser.ParseHref(parsedApartComplexGroupData)) }); }
private IEnumerable <CityData> CreateCityData(HtmlNodeCollection cityHtml) { var cityData = cityHtml?.Select(node => new CityData() { Name = _htmlParser.ParseText(node), Url = _pageHandler.CreateLunUaUrl(_htmlParser.ParseHref(node)) } ); return(cityData); }