Esempio n. 1
0
        public ActionResult ContactDetails(long id)
        {
            UpdateContactRequest request = null;
            var getRequest = new GetContactRequest(SynergySecurity.GetCurrentUser());

            getRequest.Id = id;
            var RecordId = SynergySecurity.ToLog <GetContactRequest>(getRequest);
            var model    = contactApi.GetContact(getRequest);

            SynergySecurity.ToUpdateLog <GetContactResponse>(model, RecordId);
            if (model != null)
            {
                request = new UpdateContactRequest()
                {
                    Id       = model.Contact.id,
                    Property = ToConvertContactProperty(model.Contact)
                };
            }
            return(View(request ?? new UpdateContactRequest()));
        }