public async Task HandleSendRequest(GatewaySendout sendout,
                                            Config conf)
        {
            switch (sendout.MeansOfCommunication)
            {
            case Enums.MeansOfCommunication.Email:
                await _emailService.SendEmailAsync(sendout.ContactDetails, sendout.Text);

                Log.Information($"Email sent to {sendout.ContactDetails} with text {sendout.Text}");
                break;

            case Enums.MeansOfCommunication.SMS:
                await _smsService.SendSmsAsync(sendout.ContactDetails, sendout.Text);

                Log.Information($"Email sent to {sendout.ContactDetails} with text {sendout.Text}");
                break;
            }
        }
 public async Task SendNotification([FromBody] GatewaySendout sendout)
 {
     await _handler.HandleSendRequest(sendout, _config);
 }