public void Execute() { var twilioRestClient = new Domain.Twilio.RestClient(); AvailableAppointments().ForEach(appointment => twilioRestClient.SendSmsMessage( appointment.PhoneNumber, string.Format(MessageTemplate, appointment.Name, appointment.Time.ToString("t")))); }
public void Execute() { var twilioRestClient = new Domain.Twilio.RestClient(); AvailableAppointments().ForEach(appointment => twilioRestClient.SendSmsMessage( appointment.PhoneNumber, string.Format(MessageTemplate, appointment.Name, appointment.Time.ToString("t")))); }
public void Execute() { var twilioRestClient = new Domain.Twilio.RestClient(); var upcoming = UpcomingEvents(); foreach(Event e in upcoming) { foreach (ApplicationUser attendee in e.Attendees) { twilioRestClient.SendSmsMessage(attendee.PhoneNumber, string.Format(MessageTemplate, attendee.FullName, e.DateTime.ToString("t"))); } } }
public void Execute() { var twilioRestClient = new Domain.Twilio.RestClient(); var upcoming = UpcomingEvents(); foreach (Event e in upcoming) { foreach (ApplicationUser attendee in e.Attendees) { twilioRestClient.SendSmsMessage(attendee.PhoneNumber, string.Format(MessageTemplate, attendee.FullName, e.DateTime.ToString("t"))); } } }