public ViewResult SelectionInvoiceView(Guid invoiceId, Boolean mockData = false)
        {
            var model = mockData
                    ? MockInvoiceData.MockSelectionInvoice()
                    : invoiceReportService.GetOrCreateReport(invoiceId, InvoiceFormatType.Selection)
                        as SelectionInvoiceModel;

            return(View("~/Views/Invoice/Selection.cshtml", model));
        }
        public FileContentResult SelectionInvoiceExcel(Guid invoiceId, Boolean mockData = false)
        {
            var model = mockData
                    ? MockInvoiceData.MockSelectionInvoice()
                    : invoiceReportService.GetOrCreateReport(invoiceId, InvoiceFormatType.Selection)
                        as SelectionInvoiceModel;

            var excelGenerator = new ExportInvoiceReportToExcel();

            var fileBytes = excelGenerator.GenerateSelectionInvoiceReport(model);

            var reportFileName = String.Format("SelectionInvoiceReport.xlsx");

            return(File(fileBytes, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", reportFileName));
        }