/// <summary> /// Generates a <see cref="DTO.Thing"/> from the current <see cref="Organization"/> /// </summary> public override DTO.Thing ToDto() { var dto = new DTO.Organization(this.Iid, this.RevisionNumber); dto.ExcludedDomain.AddRange(this.ExcludedDomain.Select(x => x.Iid)); dto.ExcludedPerson.AddRange(this.ExcludedPerson.Select(x => x.Iid)); dto.IsDeprecated = this.IsDeprecated; dto.ModifiedOn = this.ModifiedOn; dto.Name = this.Name; dto.RevisionNumber = this.RevisionNumber; dto.ShortName = this.ShortName; dto.ThingPreference = this.ThingPreference; dto.IterationContainerId = this.CacheKey.Iteration; dto.RegisterSourceThing(this); this.BuildDtoPartialRoutes(dto); return(dto); }