Exemplo n.º 1
0
        public TeamDTO(ITeam team)
        {
            if (team.Id < 0)
            {
                throw new ArgumentOutOfRangeException($"{nameof(team.Id)} cannot be less than 0.");
            }
            EntryDTO entry = new EntryDTO(team.Entry);

            ValidateInParameters(team.TeamNo, team.TeamName, team.Entry.Id);

            Id       = team.Id;
            TeamNo   = team.TeamNo;
            TeamName = team.TeamName;
            EntryId  = team.Entry.Id;
            Entry    = entry;
            Active   = team.Active;
            sa_Info  = team.sa_Info;
        }