Beispiel #1
0
        public string Search(WorkKeyValueApiSearcher searcher)
        {
            var vm = CreateVM <WorkKeyValueApiListVM>();

            vm.Searcher = searcher;
            return(vm.GetJson());
        }
Beispiel #2
0
        public IActionResult ExportExcel(WorkKeyValueApiSearcher searcher)
        {
            var vm = CreateVM <WorkKeyValueApiListVM>();

            vm.Searcher     = searcher;
            vm.SearcherMode = ListVMSearchModeEnum.Export;
            var data = vm.GenerateExcel();

            return(File(data, "application/vnd.ms-excel", $"Export_WorkKeyValue_{DateTime.Now.ToString("yyyy-MM-dd")}.xls"));
        }