Esempio n. 1
0
 public static SmsResponse SendSms(
     string mobileNo,
     string messageBody,
     string entityID,
     string entityName,
     SmsReceiverType receiverType,
     int?receiverID)
 {
     return(SmsManager.SendSms(new SmsData()
     {
         MessageBody = messageBody,
         MobileNo = mobileNo,
         EntityID = entityID,
         EntityName = entityName,
         RecieverID = receiverID,
         SmsReceiverType = receiverType
     }));
 }
Esempio n. 2
0
        public static async Task <SmsResponse> SendSmsAsync(
            string mobileNo,
            string messageBody,
            string entityID,
            string entityName,
            SmsReceiverType receiverType,
            int?receiverID)
        {
            SmsData smsData = new SmsData()
            {
                MessageBody     = messageBody,
                MobileNo        = mobileNo,
                EntityID        = entityID,
                EntityName      = entityName,
                RecieverID      = receiverID,
                SmsReceiverType = receiverType
            };
            SmsResponse smsResponse = await SmsManager.SendSmsAsync(smsData);

            return(smsResponse);
        }