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 { })); }
public IHttpActionResult Sms(int volunteerId) { SmsProvider.SendSmsToVolunteer(volunteerId); return(Ok()); }