public IActionResult ExportExcel(PayOffsSearcher searcher) { var vm = Wtm.CreateVM <PayOffsListVM>(); vm.Searcher = searcher; vm.SearcherMode = ListVMSearchModeEnum.Export; return(vm.GetExportData()); }
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())); } }