public IActionResult PhoneReport() { IQueryable <PhoneNumber> phoneQuery = _computerRepository.GetAllPhonesQuery(); var report = new Excel_Docs().GetPhoneReport(phoneQuery); return(File(report, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "ListaNumerow.xlsx")); }