Exemplo n.º 1
0
        private async void AddSelectedTeamsToSeason(IEnumerable <Team> teams, IEnumerable <Season> seasons)
        {
            foreach (var season in seasons)
            {
                var request = new SeasonMembershipCreateRequest
                {
                    TeamIds  = teams.Select(m => m.Id),
                    SeasonId = season.Id
                };

                await WebApiClient.CreateSeasonMembershipsAsync(request);
            }
        }