public ActionResult _TerminalListGridActionCore(GridViewModel gridViewModel)
        {
            gridViewModel.ProcessCustomBinding(new GridViewCustomBindingGetDataRowCountHandler(args => { TerminalListCustomBinding.TerminalListGetDataRowCount(args, CurrentTenantId, CurrentWarehouseId); }),

                                               new GridViewCustomBindingGetDataHandler(args =>
            {
                TerminalListCustomBinding.TerminalListGetData(args, CurrentTenantId, CurrentWarehouseId);
            })
                                               );
            return(PartialView("_TerminalList", gridViewModel));
        }
        //[ValidateInput(false)]
        //public ActionResult _TerminalList()
        //{
        //    // get properties of current tenant
        //    caTenant tenant = caCurrent.CurrentTenant();

        //    // get properties of user
        //    caUser user = caCurrent.CurrentUser();

        //    //get current warehouse
        //    TenantLocations warehouse = caCurrent.CurrentWarehouse();

        //    var model = _terminalServices.GetAllTerminalsForGrid(tenant.TenantId, warehouse.WarehouseId).ToList();
        //    return PartialView("__TerminalList", model);

        //}

        public ActionResult _TerminalList()
        {
            var viewModel = GridViewExtension.GetViewModel("Terminals");

            if (viewModel == null)
            {
                viewModel = TerminalListCustomBinding.CreateTerminalListGridViewModel();
            }

            return(_TerminalListGridActionCore(viewModel));
        }