コード例 #1
0
        public IActionResult EquipmentReport()
        {
            IQueryable <Computer> equipmentQuery = _computerRepository.GetAllComputersQuery();

            var report = new Excel_Docs().GetEquipmentReport(equipmentQuery);

            return(File(report, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "ListaSprzetu.xlsx"));
        }