public SeasonDivision(string name, Season season, DivisionLevel level, SeasonDivision parent) { Name = name; Season = season; Level = level; Parent = parent; if (parent != null) { Parent.AddChildDivision(this); } }
public SeasonDivision(string name, Season season, DivisionLevel level, SeasonDivision parent, IList <SeasonDivision> children, IList <SeasonRanking> ranking) { Name = name; Season = season; Level = level; Parent = parent; if (parent != null) { Parent.AddChildDivision(this); } if (children != null) { Children = children; } if (ranking != null) { Ranking = ranking; } }