private void OnBookingCancelled(BookingCancelledEvent eventObject) { if (eventObject.TherapistId != TherapistId.Empty) { // Booking cancelled by therapist // Route event through to the associated therapist booking var therapist = _therapists.FirstOrDefault(t => t.TherapistId == eventObject.TherapistId); therapist?.Route(eventObject); // If a booking is cancelled by the therapist we probably need to // return to the tender state... Status = BookingStatus.Tender; } else { // Booking cancelled by client Status = BookingStatus.CancelledByClient; } }
private void OnBookingCancelled(BookingCancelledEvent eventObject) { Status = BookingStatus.CancelledByTherapist; }