private Property ToProperty(long clientId, VolksbankProperty volksbankProperty) { var details = new Dictionary <string, string> { { "Ort", volksbankProperty.Location }, { "Zimmer", volksbankProperty.RoomCount.Format() }, { "Wohnfläche", $"{volksbankProperty.LivingArea.Format()} m²" } }; return(new Property( volksbankProperty.Id, volksbankProperty.Description, volksbankProperty.ImageUri, DateTime.Now, volksbankProperty.Price, details, new Uri($"https://{clientId}.flowfact-webparts.net/index.php/estates/{volksbankProperty.Id}"), MessageFormat.Html, "Volksbank Flowfact")); }
private Property ToProperty(VolksbankProperty volksbankProperty) { var details = new Dictionary <string, string> { { "Ort", volksbankProperty.Location }, { "Zimmer", volksbankProperty.RoomCount.Format() }, { "Wohnfläche", $"{volksbankProperty.LivingArea.Format()} m²" }, { "Grundstücksfläche", $"{volksbankProperty.PropertyArea.Format()} m²" } }; return(new Property( volksbankProperty.Id.ToString(), volksbankProperty.Description, volksbankProperty.ImageUri, DateTime.Now, volksbankProperty.Price, details, new Uri($"https://www.immopool.de/ASP/immo/obj/immoexpose.asp?Lasid=53048086&inetlfdnr={volksbankProperty.Id}"), MessageFormat.Html, "Volksbank Immopool")); }