Beispiel #1
0
 public string  SendOneToOneSingleSms(string mobileNumber, string smsText)
 {
     try
     {
         var    sms         = new SendSmsSoapClient();
         string returnValue = sms.OneToOne(userName, userPassword, mobileNumber, smsText,
                                           "TEXT", "", "");
         return(returnValue);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
        public string SendOneToManyBulkSms(string mobileNumber, string smsText, string campaign)
        {
            string many;

            try
            {
                SendSmsSoapClient sms = new SendSmsSoapClient();
                many = sms.OneToMany(this.userName, this.userPassword, smsText, mobileNumber, "TEXT", "", campaign);
            }
            catch (Exception exception)
            {
                Exception ex = exception;
                ex.ErrorWritter();
                throw ex;
            }
            return(many);
        }
Beispiel #3
0
 public TicketReservationController(IUnitOfWork unitOfWork, IMapper mapper)
 {
     _mapper     = mapper;
     _unitOfWork = unitOfWork;
     client      = new SendSmsSoapClient(SendSmsSoapClient.EndpointConfiguration.SendSmsSoap);
 }