public ActionResult _ProductSerialList()
        {
            var viewModel = GridViewExtension.GetViewModel("_ProductSerialListGridView");

            if (viewModel == null)
            {
                viewModel = ProductSerialListCustomBinding.CreateProductSerialGridViewModel();
            }

            return(ProductSerialGridActionCore(viewModel));
        }
        public ActionResult ProductSerialGridActionCore(GridViewModel gridViewModel)
        {
            gridViewModel.ProcessCustomBinding(
                new GridViewCustomBindingGetDataRowCountHandler(args =>
            {
                ProductSerialListCustomBinding.GetPoductSerialDataRowCount(args, CurrentTenantId, CurrentWarehouseId);
            }),

                new GridViewCustomBindingGetDataHandler(args =>
            {
                ProductSerialListCustomBinding.GetProductSerialData(args, CurrentTenantId, CurrentWarehouseId);
            })
                );
            return(PartialView("_ProdcutSerialList", gridViewModel));
        }