public void AccountSave(ref Account account) { StoredProcedure proc = new StoredProcedure(SQLResource.ProcessTwilioAccount, this.ConnectionString); proc.Parameters.AddWithValue("@AccountSID", account.Sid); proc.Parameters.AddWithValue("@FriendlyName", account.FriendlyName); proc.Parameters.AddWithValue("@DateCreated", account.DateCreated); proc.Parameters.AddWithValue("@DateUpdate", account.DateUpdated); proc.ExecuteNonQuery(); }
public static CallResult GetCalls(Account Acnt) { TwilioRestClient acntInfo = new TwilioRestClient(Acnt.Sid, Acnt.AuthToken); CallResult calls = acntInfo.ListCalls(); return (calls); }
public static IncomingPhoneNumberResult GetPhoneNumbers(Account Acnt) { TwilioRestClient acntInfo = new TwilioRestClient(Acnt.Sid, Acnt.AuthToken); IncomingPhoneNumberResult phoneNumbers = acntInfo.ListIncomingPhoneNumbers(); return phoneNumbers; }
public static void Save(Account account, IExternalDataProvider dataProvider) { dataProvider.AccountSave(ref account); }