/// <summary> /// Get entity from contacts by key /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contactid'> /// key: contactid of contact /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> public static MicrosoftDynamicsCRMcontact GetByKey(this IContacts operations, string contactid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>)) { return(operations.GetByKeyAsync(contactid, select, expand).GetAwaiter().GetResult()); }