コード例 #1
0
        private async Task SendSms(User notifiedUser, Dictionary <string, string> values)
        {
            var template = await _smsTemplateRepository.GetByNameAsync(TemplateNames.AppointmentRescheduled);

            var message = new SmsMessage(template, values, notifiedUser.Address.Phone);

            _jobManager.Enqueue(message);
        }
        private async Task SendSms(Appointment appointment, User notifiedUser)
        {
            var template = await _smsTemplateRepository.GetByNameAsync(TemplateNames.ConfirmAppointment);

            var values = await _appointmentService.GetTemplateValues(appointment);

            var message = new SmsMessage(template, values, notifiedUser.Address.Phone);

            _jobManager.Enqueue(message);
        }