public MessageOutput SendEmail(MessageInput messageInput) { var client = new NotificationServiceClient(); client.OpenAsync(); var obj = new SendEmailRequest() { ServiceToken = new ServiceToken { Token = _Token }, Message = new Email() { Destination = messageInput.Destination, EmailMessage = messageInput.Message } }; var reply = client.EmailAsync(obj.ServiceToken, obj.Message).Result; client.CloseAsync(); return(_NotificationMapping.MapNotificationOutput(reply)); }