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