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