Exemplo n.º 1
0
        public IHttpActionResult Panic(PanicRequest panic)
        {
            Debug.WriteLine("Panic");
            Debug.WriteLine($"{panic.Id}");
            Debug.WriteLine($"{panic.Timestamp}");
            var notifier = new Notifier();

            notifier.Panic();
            SmsProvider.SendSmsToVolunteer(1);
            return(Content(HttpStatusCode.OK, new { }));
        }
Exemplo n.º 2
0
 public IHttpActionResult Sms(int volunteerId)
 {
     SmsProvider.SendSmsToVolunteer(volunteerId);
     return(Ok());
 }