Exemple #1
0
        // GET: GenerateInvoice
        public async Task <IActionResult> GenerateVATRegister(int?year, int?month)
        {
            if (year == null || month == null)
            {
                return(NotFound());
            }

            var    vATRegisterSell = new VATRegisterSell();
            string pdfFilename     = vATRegisterSell.generate(_context, (int)year, (int)month);
            string downFilename    = vATRegisterSell.getDownloadFilename((int)year, (int)month);
            await Task.Delay(1000);

            return(RedirectToAction("GetPdfFile", new { filename = pdfFilename, downloadFilename = downFilename }));
        }