public async System.Threading.Tasks.Task <decimal> GetCreditAsync(string reciverNum, string messege) { var sendServiceClient = new SendServiceClient(); var credit = await sendServiceClient.GetCreditAsync(username, password); return(credit); }
public async System.Threading.Tasks.Task <SendSmsReturnType> sendAsync(string reciverNum, string messege) { var sendServiceClient = new SendServiceClient(); long[] recId = null; byte[] status = null; var result = await sendServiceClient.SendSMSAsync(new SendSMSRequest(username, password, numSender, new[] { reciverNum }, messege, false, recId, status));//ref var z = (SendSmsReturnType)result.SendSMSResult; return(z); }