Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
770 B
1
Indexable
public async Task<List<MyListings>> GetAll()
        {
            return (await client.Child($"Lessors/{lessorkey}/Properties")
                .OnceAsync<MyListings>())
                .Select(item => new MyListings
                {
                    PropertyName = item.Object.PropertyName,
                    PropertyDescription = item.Object.PropertyDescription,
                    PropertyStock = item.Object.PropertyStock,
                    PropMainImage = item.Object.PropMainImage,
                    PropImg_1 = item.Object.PropImg_1,
                    PropImg_2 = item.Object.PropImg_2,
                    PropImg_3 = item.Object.PropImg_3,
                    PropImg_4 = item.Object.PropImg_4
                }).ToList();
        }