public async Task<BlogStatistic> GetFullBlogStatistic()
{
BlogStatistic stat = new BlogStatistic();
stat.Posts = new List<Post>();
try
{
using (var httpClient = new HttpClient())
{
await GetBlogMainStatistics(1, stat.Posts, httpClient);
await GetBlogCounters(stat.Posts, httpClient);
}
stat.RefreshMainStatistics();
}
catch (Exception)
{
}
return stat;
}