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