/// <summary> /// Construct a <see cref="Team"/>. /// </summary> /// <param name="t">The team entity.</param> /// <param name="a">The affiliation entity.</param> public Team(Entities.Team t, Xylab.Tenant.Entities.Affiliation a) { GroupIds = new[] { $"{t.CategoryId}" }; OrganizationId = a.Abbreviation; Id = $"{t.TeamId}"; Name = t.TeamName; }
/// <summary> /// Construct an <see cref="Organization"/>. /// </summary> /// <param name="a">The affiliation entity.</param> public Organization(Xylab.Tenant.Entities.Affiliation a) { Id = a.Abbreviation; Name = ShortName = a.Abbreviation.ToUpper(); Country = a.CountryCode; FormalName = a.Name; IcpcId = $"{a.Id}"; }