Esempio n. 1
0
        public DocsMarshal.Entities.ProfileForUpdate ToProfileForUpdate(bool raiseWorkflowEvents)
        {
            var ritorno = new DocsMarshal.Entities.ProfileForUpdate();

            ritorno.ObjectId = Objectid;
            AddStdFieldToIProfileFor(ritorno, raiseWorkflowEvents);
            return(ritorno);
        }
Esempio n. 2
0
        public async Task <ProfileUpdated> UpdateAsync(DocsMarshal.Entities.ProfileForUpdate profileForUpdate)
        {
            try
            {
                // controllo che il profilo non sia null
                if (profileForUpdate == null)
                {
                    throw new ArgumentNullException("profile is null");
                }
                var rit = await Orchestrator.PostAsync("/DMProfile/Update", new { sessionID = Orchestrator.SessionId, ProfileForUpdate = profileForUpdate, ObjectId = profileForUpdate.ObjectId }, new { Result = new Entities.ProfileUpdated() });

                return(rit.Result);
            }
            catch (Exception ex)
            {
                return(new ProfileUpdated {
                    Error = ex.Message, HasError = true
                });
            }
        }
Esempio n. 3
0
 public async Task <ProfileUpdated> Update(DocsMarshal.Entities.ProfileForUpdate profile)
 {
     return(await UpdateAsync(profile));
 }