//public ActionResult PLandlordsGridview()
        //{
        //    ViewBag.LandLords = PropertyService.GetAllValidPropertyLandlords().ToList();
        //    return PartialView("_LandlordsListGridview");
        //}
        public ActionResult PLandlordsGridview()
        {
            var viewModel = GridViewExtension.GetViewModel("_LandlordsListGridview");

            if (viewModel == null)
            {
                viewModel = PLandlordsCustomBinding.CreatePlandlordGridViewModel();
            }

            return(PlandlordsGridActionCore(viewModel));
        }
        public ActionResult PlandlordsGridActionCore(GridViewModel gridViewModel)
        {
            gridViewModel.ProcessCustomBinding(
                new GridViewCustomBindingGetDataRowCountHandler(args =>
            {
                PLandlordsCustomBinding.PlandlordGetDataRowCount(args);
            }),

                new GridViewCustomBindingGetDataHandler(args =>
            {
                PLandlordsCustomBinding.PlandlordGetData(args);
            })
                );
            return(PartialView("_LandlordsListGridview", gridViewModel));
        }