Ejemplo n.º 1
0
        public async Task CreatePetition(CreatePetitionRequest createPetitionRequest, CancellationToken cancellationToken)
        {
            var petition = _mapper.Map <Domain.Petition>(createPetitionRequest);

            petition.Id = Guid.NewGuid();
            await _petitionRepository.Save(petition, cancellationToken);
        }