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; } }
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); }
public TicketReservationController(IUnitOfWork unitOfWork, IMapper mapper) { _mapper = mapper; _unitOfWork = unitOfWork; client = new SendSmsSoapClient(SendSmsSoapClient.EndpointConfiguration.SendSmsSoap); }