Ejemplo n.º 1
0
        public async Task <IEnumerable <AllergenDto> > Handle(GetAllergensQuery request, CancellationToken cancellationToken)
        {
            var entities = await _repository.GetAll(cancellationToken : cancellationToken);

            return(_mapper.Map <IEnumerable <AllergenDto> >(entities));
        }