public IActionResult ExportExcel(ProductLendSearcher searcher)
        {
            var vm = Wtm.CreateVM <ProductLendListVM>();

            vm.Searcher     = searcher;
            vm.SearcherMode = ListVMSearchModeEnum.Export;
            return(vm.GetExportData());
        }
 public IActionResult Search(ProductLendSearcher searcher)
 {
     if (ModelState.IsValid)
     {
         var vm = Wtm.CreateVM <ProductLendListVM>();
         vm.Searcher = searcher;
         return(Content(vm.GetJson(enumToString: false)));
     }
     else
     {
         return(BadRequest(ModelState.GetErrorJson()));
     }
 }