public CharacterAttributeNameResource EnrichCharacterAttributeName(ICharacterAttributeName characterAttributeName)
        {
            var enricher = new CharacterAttributeNameResourceEnricher(_linkProvider, _mapper, _linkGenerator, _httpContext);

            return(enricher.Enrich(characterAttributeName));
        }
示例#2
0
 public ManyCharacterAttributeNameResourceEnricher(CharacterAttributeNameResourceEnricher singleResourceEnricher)
     : base(singleResourceEnricher.LinkProvider, singleResourceEnricher.EntityToDtoMapper, singleResourceEnricher.LinkGenerator, singleResourceEnricher.Context)
 {
     Guard.VerifyObjectNotNull(singleResourceEnricher, nameof(singleResourceEnricher));
     _singleResourceEnricher = singleResourceEnricher;
 }