Esempio 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 { });
 }
Esempio n. 2
0
 public IHttpActionResult Panic()
 {
     var notifier = new Notifier();
     notifier.Panic();
     return Ok();
 }