Exemple #1
0
        public async Task <RegistrationServiceObject> CreateRegistrationAsync(RegistrationServiceObject registrationServiceObject, CancellationToken token)
        {
            var registrationEntity = _mapper.Map <RegistrationEntity>(registrationServiceObject);
            var createdEntity      = await _registrationRepository.CreateRegistrationAsync(registrationEntity, token);

            return(_mapper.Map <RegistrationServiceObject>(createdEntity));
        }