public ActionResult ExportToExcel() { string contentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; string fileName = "evaluación.xlsx"; var content = employeeViewModel.ExportToExcel(); return(File(content, contentType, fileName)); }