public async Task <GetConsumerDto> GetById(int id) { var consumer = await _repository.GetById(id); var consumerDto = _mapper.Map <GetConsumerDto>(consumer); return(consumerDto); }
public async Task <GetConsumerDto> GetById(int id) { var consumer = await _repository.GetById(id); var consumerDto = _mapper.Map <GetConsumerDto>(consumer); return(consumerDto); }