private void OnBookingAccepted(TherapistBookingAcceptedEvent eventObject) { var therapist = _therapists.FirstOrDefault(t => t.TherapistId == eventObject.TherapistId); if (therapist != null && therapist.Status == BookingStatus.BidByTherapist) { therapist.Route(eventObject); Status = BookingStatus.AcceptByClient; } }
private void OnBookingAccepted(TherapistBookingAcceptedEvent eventObject) { Status = BookingStatus.AcceptByClient; }