Example #1
0
        Task IHandles <ConfirmChangeEmailAddress> .HandleAsync(ConfirmChangeEmailAddress command)
        {
            var attendee = _repository.GetById(command.AttendeeId);

            attendee.ConfirmChangeEmail(command.ConfirmationId);
            return(_repository.SaveAsync(attendee));
        }
        public async Task <HttpResponseMessage> ConfirmChangeEmailAsync(Guid?attendeeId, Guid?confirmationId)
        {
            var command = new ConfirmChangeEmailAddress()
            {
                AttendeeId     = attendeeId.Value,
                ConfirmationId = confirmationId.Value
            };

            return(await ProcessRequestAsync(command));
        }