Ejemplo n.º 1
0
        public JsonResult GetContactPersonById(VendorViewModel vViewModel)
        {
            try
            {
                vViewModel.ContactPerson = _vRepo.GetContactPersonById(vViewModel.ContactPerson.ContactPersonId);

                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));
        }