Пример #1
0
        public async Task GetPartDetailAsync()
        {
            var service = new PartService(DataSource);
            var books   = await DataSource.From("Sources.Book").ToStringList("BookSlug").ExecuteAsync();

            foreach (var bookSlug in books)
            {
                var parts = await DataSource.From("Sources.PartDetail", new { bookSlug }).ToStringList("PartSlug").ExecuteAsync();

                foreach (var partSlug in parts)
                {
                    var row = await service.GetPartDetailAsync(bookSlug, partSlug, null);
                }
            }
        }