public IActionResult Import() { string folder = _hosting.WebRootPath; string fileName = Path.Combine(folder, "Excel", "Test.xlsx"); bool result = EPPlusHelper.ImportExcel(fileName, ExcelData.GetExcelData()); string str = result ? "导入Excel成功:" + fileName : "导入失败"; return(Content(str)); }