protected void SendSMSNotification()
        {
            taxpayer = (ITaxpayer)Session["ITaxpayer"];

            StringBuilder message = new StringBuilder()
                                    .AppendFormat("Dear {0} {1},\n", taxpayer.FirstName, taxpayer.LastName)
                                    .AppendFormat("The FCT Internal Revenue Service (FCT-IRS) has successfully ")
                                    .AppendFormat("validated your taxpayer details and issued you a Taxpayer Identification Number.\n")
                                    .AppendFormat("TIN: {0} \n", taxpayer.TIN)
                                    .AppendFormat("Please quote this TIN in all communications with the FCT-IRS. Thank you \n")
                                    .AppendFormat("*****@*****.**");

            string recipientPhone = taxpayer.Phone1;

            try
            {
                string requestId = SMSMessaging.SendSMS(recipientPhone, message.ToString());
                DisplayAlert("Success", "SMS Notification", string.Concat("SMS succesfully sent to ", recipientPhone));

                taxpayer.SMSNotified = true;
                context.SaveChanges();
            }
            catch (Exception ex)
            {
                DisplayAlert("Danger", "SMS Notification", ex.Message);
                return;
            }
        }
    public void btnSend_click(object sender, EventArgs e)
    {
        string Message = SMSMessaging.SendSMS(Request.QueryString["szpatientPnumber"].ToString(), txtsms.Text);

        if (Message != "Error")
        {
            lblMsg.Text = "Message Sent.";
        }
        else
        {
            lblMsg.Text = "Error Sending Message.";
        }
    }