private void DoUpdate(UpdatedPersonMembership updatedPersonMembership, Membership modelToUpdate) { Contract.Requires(updatedPersonMembership != null, "The updatedPersonMembership must not be null."); throwIfMembershipNotFound(modelToUpdate, updatedPersonMembership.Id); modelToUpdate.MembershipId = updatedPersonMembership.Id; modelToUpdate.Name = updatedPersonMembership.Name; updatedPersonMembership.Update.SetHistory(modelToUpdate); }
/// <summary> /// /// </summary> /// <param name="updatedmembership"></param> /// <returns></returns> public Task UpdateAsync(UpdatedPersonMembership updatedmembership) { Contract.Requires(updatedmembership != null, "The updated membership must not be null."); return(Task.FromResult <object>(null)); }
/// <summary> /// /// </summary> /// <param name="updatedmembership"></param> public void Update(UpdatedPersonMembership updatedmembership) { Contract.Requires(updatedmembership != null, "The updated membership must not be null."); }
/// <summary> /// Updates the ECA system's membership data with the given updated membership. /// </summary> /// <param name="updatedMembership">The updated membership.</param> public async Task UpdateAsync(UpdatedPersonMembership updatedMembership) { var membership = await Context.Memberships.FindAsync(updatedMembership.Id); DoUpdate(updatedMembership, membership); }
/// <summary> /// Updates the ECA system's membership data with the given updated membership. /// </summary> /// <param name="updatedMembership">The updated membership.</param> public void Update(UpdatedPersonMembership updatedMembership) { var membership = Context.Memberships.Find(updatedMembership.Id); DoUpdate(updatedMembership, membership); }