Exemplo n.º 1
0
        public JsonResult GetVendorBankById(VendorViewModel vViewModel)
        {
            try
            {
                vViewModel.Bank = _vRepo.GetVendorBankById(vViewModel.Bank.BankId);

                Logger.Debug("Vendor Controller GetContactPersonById");
            }
            catch (Exception ex)
            {
                vViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01"));

                Logger.Error("Vendor Controller - GetContactPersonById" + ex.ToString());
            }

            TempData["vViewModel"] = vViewModel;

            return(Json(vViewModel, JsonRequestBehavior.AllowGet));
        }