示例#1
0
        public IActionResult ExportExcel(PayOffsSearcher searcher)
        {
            var vm = Wtm.CreateVM <PayOffsListVM>();

            vm.Searcher     = searcher;
            vm.SearcherMode = ListVMSearchModeEnum.Export;
            return(vm.GetExportData());
        }
示例#2
0
 public IActionResult Search(PayOffsSearcher searcher)
 {
     if (ModelState.IsValid)
     {
         var vm = Wtm.CreateVM <PayOffsListVM>();
         vm.Searcher = searcher;
         return(Content(vm.GetJson(enumToString: false)));
     }
     else
     {
         return(BadRequest(ModelState.GetErrorJson()));
     }
 }