Example #1
0
        public static Season FromDTO(SeasonDTO seasonDTO, Team team)
        {
            Season s = new Season();

            s.owningTeam = team;
            s.name       = seasonDTO.Name;
            s.seasonId   = seasonDTO.SeasonId;
            s.year       = seasonDTO.Year;
            return(s);
        }
Example #2
0
 public static Season FromDTO(SeasonDTO seasonDTO, Team team)
 {
     Season s = new Season();
     s.owningTeam = team;
     s.name = seasonDTO.Name;
     s.seasonId = seasonDTO.SeasonId;
     s.year = seasonDTO.Year;
     return s;
 }