public async Task <bool> SendSMS(SendSMSRequest request)
        {
            logger.Write($"Sending SMS to {request.Nr}");
            var result = await notificationServiceV3.SendSMS(request);

            logger.Write($"SMS to {request.Nr} sent with result {result}");
            return(result);
        }
        public async Task <ActionResult <bool> > SendSMS(string nr)
        {
            var result = await notificationService.SendSMS(new SendSMSRequest()
            {
                Nr = nr
            });

            return(Ok(result));
        }
        public Task <bool> SendSMS(SendSMSRequest request)
        {
            var result = validator.Validate(request);

            if (!result)
            {
                throw new ArgumentException(nameof(request));
            }
            return(notificationServiceV3.SendSMS(request));
        }
        public async Task <bool> SendSMS(SendSMSRequest request)
        {
            var result = cache.Get <string>("phoneNr");

            if (result != null && result == request.Nr)
            {
                return(true);
            }
            var sendResult = await notificationServiceV3.SendSMS(request);

            cache.Add("phoneNr", request.Nr);
            return(sendResult);
        }