public void Create10000PdfFile(CompetitionResult competitionResult) { for (int i = 1; i <= 10000; i++) { var pageNumber = i >= competitionResult.total ? competitionResult.page : competitionResult.page; var matches = competitionResult.data.Skip(competitionResult.per_page * (pageNumber - 1)) .Take(competitionResult.per_page).ToList(); CreatePdfFile(matches, Path.Combine(relativePath, $"{FileName}_{i}.pdf")); } }
public void Create10000PdfFile(CompetitionResult competitionResult) { int pageNumber = 1; for (int i = 1; i <= 10000; i++) { if (pageNumber >= competitionResult.total_pages) { pageNumber = 1; } else { pageNumber++; } var matches = competitionResult.data.Skip(competitionResult.per_page * (pageNumber - 1)) .Take(competitionResult.per_page).ToList(); CreatePdfFile(matches, Path.Combine(relativePath, $"{FileName}_{i}.pdf")); } }
public void CreatePdfFile(CompetitionResult competitionResult) { CreatePdfFile(competitionResult.data, Path.Combine(relativePath, $"{FileName}.pdf")); }
public void Create10000PdfFile(CompetitionResult competitionResult) { throw new System.NotImplementedException(); }