public IActionResult ExportExcel(T_ProductCategoriesSearcher searcher) { var vm = CreateVM <T_ProductCategoriesListVM>(); vm.Searcher = searcher; vm.SearcherMode = ListVMSearchModeEnum.Export; return(vm.GetExportData()); }
public IActionResult Search(T_ProductCategoriesSearcher searcher) { if (ModelState.IsValid) { var vm = CreateVM <T_ProductCategoriesListVM>(); vm.Searcher = searcher; return(Content(vm.GetJson())); } else { return(BadRequest(ModelState.GetErrorJson())); } }