static void Main()
{
WriteLine("Client app, wait for service");
try
{
ReadLine();
ReadChaptersAsync().Wait();
ReadChapterAsync().Wait();
ReadNotExistingChapterAsync().Wait();
ReadXmlAsync().Wait();
AddChapterAsync().Wait();
UpdateChapterAsync().Wait();
RemoveChapterAsync().Wait();
}
catch (Exception ex)
{
WriteLine(ex.Message);
}
ReadLine();
}