public async Task Persist(AddTimeRegistrationDomainEvent registration) { var state = new State(registration); AddOrderNumber(state); AssociateRegistrationWithOrderNumber(state); _context.TimeRegistrationDomainEvents.Add(state.Registration); await _context.SaveChangesAsync(); }
public State(AddTimeRegistrationDomainEvent registration) { Registration = registration; }