public JsonResult GetVendorBank(VendorViewModel vViewModel) { PaginationInfo pager = new PaginationInfo(); pager = vViewModel.Pager; PaginationViewModel pViewModel = new PaginationViewModel(); try { pViewModel.dt = _vRepo.GetVendorBank(vViewModel.Bank.VendorId, ref pager); pViewModel.Pager = pager; Logger.Debug("Vendor Controller GetVendorBank"); } catch (Exception ex) { vViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01")); Logger.Error("Vendor Controller - GetVendorBank" + ex.ToString()); } return(Json(JsonConvert.SerializeObject(pViewModel), JsonRequestBehavior.AllowGet)); }