BookServiceClientApp.Program.AddChapterAsync C# (CSharp) Метод

AddChapterAsync() приватный статический Метод

private static AddChapterAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task
        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();
        }