コード例 #1
0
        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;
            }
        }
コード例 #2
0
 private void OnBookingAccepted(TherapistBookingAcceptedEvent eventObject)
 {
     Status = BookingStatus.AcceptByClient;
 }