Beispiel #1
0
        public async Task <GetConsumerDto> GetById(int id)
        {
            var consumer = await _repository.GetById(id);

            var consumerDto = _mapper.Map <GetConsumerDto>(consumer);

            return(consumerDto);
        }