public async Task BuildReportAsync(ServiceBusReportOrder reportOrder)
 {
     DateTime currentDate = DateTime.Now;
     IList<PostInfo> allPosts = await _socialApiProvider.RetrievePostInfosAsync(reportOrder.UserId, reportOrder.Author);
     var userReport = new UserReport
     {
         AuthorId = reportOrder.Author == null ? null : (int?)reportOrder.Author.Id,
         CreationDate = currentDate,
         UserId = reportOrder.UserId,
         PostInfos = allPosts
     };
     _dataContext.UserReports.Add(userReport);
     _dataContext.SaveChanges();
 }
 private void InitUserReport(UserReport report)
 {
     if (report.MostPopular != null)
     {
         report.MostPopular.Link = _socialApiProvider.BuildPostUrl(report, report.MostPopular);
     }
 }
 public string BuildPostUrl(UserReport report, PostInfo post)
 {
     return VkConstants.VkBaseUrl + "/wall" + report.UserId + "_" + post.PostId;
 }