public IActionResult Download() { var quering = new HolidayQuering(); //CsvActionResult是Lib.Mvc.Extension库提供的HTTP csv响应结果 return(new CsvActionResult(quering.QueryAll(), true, encoding: Encoding.UTF8)); }
public IActionResult Index() { PagingConfig.NumPerPage = 10; var quering = new HolidayQuering(); var model = this.CreatePagingModel(quering); return(View(model)); }