public static ReportExportResult ExportReportToFormat(ReportViewerModel model, ReportFormats format, int?startPage = 0, int?endPage = 0)
 {
     return(ExportReportToFormat(model, format.GetName(), startPage, endPage));
 }
 public static async Task <ReportExportResult> ExportReportToFormatAsync(ReportViewerModel model, ReportFormats format, int?startPage = 0, int?endPage = 0)
 {
     return(await ExportReportToFormatAsync(model, format.GetName(), startPage, endPage));
 }