Exemple #1
0
        public async Task <IEnumerable <FigureResource> > GetFigures(long parameterId)
        {
            var figures = await _parameterRepository.GetFiguresAsync(parameterId);

            return(_mapper.Map <IEnumerable <Figure>, IEnumerable <FigureResource> >(figures));
        }
            public async Task <IEnumerable <FigureResource> > Handle(GetFiguresForParameterQuery request, CancellationToken cancellationToken)
            {
                var figures = await _parameterRepository.GetFiguresAsync(request.ParameterId);

                return(_mapper.Map <IEnumerable <Figure>, IEnumerable <FigureResource> >(figures));
            }