Esempio n. 1
0
        private async Task DuplicateSquadsAndSlots(RoundSide source, RoundSide target, bool includeUser)
        {
            _context.RemoveRange(target.Squads);

            target.Squads = source.Squads.Select(s => DuplicateSquadAndSlots(target, s, includeUser)).ToList();

            _context.AddRange(target.Squads);

            await _context.SaveChangesAsync();
        }