/// <summary>
 /// Reassigns the owner of the entity to the new owner
 /// </summary>
 /// <param name="service"></param>
 /// <param name="itemToChangeOwnershipOf">Must have Logical Name and Id Populated</param>
 /// <param name="teamId"></param>
 /// <param name="token"></param>
 public static Task AssignTeamAsync(this IOrganizationServiceAsync2 service, EntityReference itemToChangeOwnershipOf, Guid teamId, CancellationToken token = default)
 {
     return(service.AssignAsync(itemToChangeOwnershipOf, new EntityReference("team", teamId), token));
 }
 /// <summary>
 /// Reassigns the owner of the entity to the new owner
 /// </summary>
 /// <param name="service"></param>
 /// <param name="itemToChangeOwnershipOf">Must have Logical Name and Id Populated</param>
 /// <param name="userId"></param>
 /// <param name="token"></param>
 public static Task AssignAsync(this IOrganizationServiceAsync2 service, Entity itemToChangeOwnershipOf, Guid userId, CancellationToken token = default)
 {
     return(service.AssignAsync(itemToChangeOwnershipOf.ToEntityReference(), new EntityReference("systemuser", userId), token));
 }