예제 #1
0
        public void Confirm(int appointmentRequestId)
        {
            bool isConfirmed = _appointmentsService.Confirm(appointmentRequestId);

            if (isConfirmed)
            {
                // Task.Run(() =>
                // {
                var appointment = GetByIdAdminView(appointmentRequestId);

                _publisher.Publish(new AppointmentConfirmedMessage
                {
                    CustomerEmail   = appointment.UserInfo.Email,
                    AppointmentTime = appointment.Date,
                    OfferName       = appointment.offer.Name
                });
                // });
            }
        }