public ActionResult DownLoad(int id, string rootid) { var file = PlanService.DownLoad(id); if (!System.IO.File.Exists(file)) { return(RedirectAlert("SavePlan", "文件不存在!", new { id = rootid })); } return(File(file, Pharos.Utility.Helpers.FileHelper.GetContentType(Path.GetExtension(file)), Path.GetFileName(file))); }