public DocsMarshal.Entities.ProfileForUpdate ToProfileForUpdate(bool raiseWorkflowEvents) { var ritorno = new DocsMarshal.Entities.ProfileForUpdate(); ritorno.ObjectId = Objectid; AddStdFieldToIProfileFor(ritorno, raiseWorkflowEvents); return(ritorno); }
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 }); } }
public async Task <ProfileUpdated> Update(DocsMarshal.Entities.ProfileForUpdate profile) { return(await UpdateAsync(profile)); }