public ActionResult Export(SortViewModel viewModel) { var 客戶資料 = _客戶資料Repository.Sort(viewModel); return(File(_客戶資料Repository.Export(客戶資料.ToList()), "application/vnd.ms-excel", "Download.xls")); }