private static void PropertySearchByPriceAndSize(IPropertiesService propertiesService) { Console.Write($"Min price: "); var minPrice = decimal.Parse(Console.ReadLine()); Console.Write($"Max price: "); var maxPrice = decimal.Parse(Console.ReadLine()); Console.Write($"Min size: "); var minSize = int.Parse(Console.ReadLine()); Console.Write($"Max size: "); var maxSize = int.Parse(Console.ReadLine()); var properties = propertiesService.SearchByPriceAndSize(minPrice, maxPrice, minSize, maxSize); foreach (var property in properties) { Console.WriteLine ($"{property.DistrictName}; {property.BuildingType}; {property.PropertyType} => {property.Price}€ => {property.Size}m²"); } }