private static async Task AddChapterAsync()
{
WriteLine(nameof(AddChapterAsync));
var client = new BookChapterClient(Addresses.BaseAddress);
BookChapter chapter = new BookChapter
{
Number = 42,
Title = "ASP.NET Web API",
Pages = 35
};
chapter = await client.PostAsync(Addresses.BooksApi, chapter);
WriteLine($"added chapter {chapter.Title} with id {chapter.Id}");
WriteLine();
}