예제 #1
0
        public async Task Persist(AddTimeRegistrationDomainEvent registration)
        {
            var state = new State(registration);

            AddOrderNumber(state);
            AssociateRegistrationWithOrderNumber(state);

            _context.TimeRegistrationDomainEvents.Add(state.Registration);
            await _context.SaveChangesAsync();
        }
예제 #2
0
 public State(AddTimeRegistrationDomainEvent registration)
 {
     Registration = registration;
 }