Exemple #1
0
 public ManyCharacterResourceEnricher(CharacterResourceEnricher singleResourceEnricher)
     : base(singleResourceEnricher.LinkProvider, singleResourceEnricher.EntityToDtoMapper, singleResourceEnricher.LinkGenerator, singleResourceEnricher.Context)
 {
     _singleResourceEnricher = singleResourceEnricher;
 }
        public CharacterResource EnrichCharacter(ICharacter character)
        {
            var enricher = new CharacterResourceEnricher(_linkProvider, _mapper, _linkGenerator, _httpContext);

            return(enricher.Enrich(character));
        }