private void TeamNew(TeamNewMessage teamNewMessage) { Model = new TeamDetailModelInner(); IDHolder.IDActualTeam = Model.Id ?? default(int); MembersList = new BindingList <UserListModelInner>(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='team'> /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static AzureOperationResponse UpdateTeamWithHttpMessages(this IAPIClient operations, TeamDetailModelInner team = default(TeamDetailModelInner), Dictionary <string, List <string> > customHeaders = null) { return(operations.UpdateTeamWithHttpMessagesAsync(team, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='team'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateTeamAsync(this IAPIClient operations, TeamDetailModelInner team = default(TeamDetailModelInner), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateTeamWithHttpMessagesAsync(team, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='team'> /// </param> public static void UpdateTeam(this IAPIClient operations, TeamDetailModelInner team = default(TeamDetailModelInner)) { operations.UpdateTeamAsync(team).GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='team'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TeamDetailModelInner> CreateTeamAsync(this IAPIClient operations, TeamDetailModelInner team = default(TeamDetailModelInner), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateTeamWithHttpMessagesAsync(team, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='team'> /// </param> public static TeamDetailModelInner CreateTeam(this IAPIClient operations, TeamDetailModelInner team = default(TeamDetailModelInner)) { return(operations.CreateTeamAsync(team).GetAwaiter().GetResult()); }