Example #1
0
        public IActionResult GetPdfFile(string storageName)
        {
            List <Product> items = _db.Products.Where(x => x.Place.Storage.Name == storageName).Include(x => x.Place).Include(x => x.Place.Storage).ToList();

            PdfService.ExportToPDF(ref items);

            return(Content("Очет успешно создан."));
        }
Example #2
0
        public IActionResult GetPdfFile(string code, string party)
        {
            List <Product> items = GetProductsByCodeAndPartyProduct(code, party);

            PdfService.ExportToPDF(ref items);

            return(Content("Файл успешно создан."));
        }