Пример #1
0
        public IActionResult ExportExcel(DataCheckResultListVM vm)
        {
            vm.SearcherMode = vm.Ids != null && vm.Ids.Count > 0 ? ListVMSearchModeEnum.CheckExport : ListVMSearchModeEnum.Export;
            var data = vm.GenerateExcel();

            return(File(data, "application/vnd.ms-excel", $"Export_DataCheckResult_{DateTime.Now.ToString("yyyy-MM-dd")}.xls"));
        }
Пример #2
0
 public string Search(DataCheckResultListVM vm)
 {
     return(vm.GetJson(false));
 }