public async Task <bool> SendSMS(string nr) { logger.Write($"Sending SMS to {nr}"); var result = await notificationServiceV2.SendSMS(nr); logger.Write($"SMS to {nr} sent with result {result}"); return(result); }
public async Task <bool> SendSMS(string nr) { var result = cache.Get <string>("phoneNr"); if (result != null && result == nr) { return(true); } var sendResult = await notificationServiceV2.SendSMS(nr); cache.Add("phoneNr", nr); return(sendResult); }
public async Task <ActionResult <bool> > SendSMS(string @nr) { var result = await notificationService.SendSMS(@nr); return(Ok(result)); }