Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static bool UpdateBalance_Withdraw(int id, double amount)
- {
- string query = "update Accounts set balance=balance-" + amount + " where AccountID=" + id;
- int result = DataHandler.ManipulateData(query);
- if (result >= 1)
- {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement