Advertisement
mahmud_bhai

balanceupdate_withdraw

Aug 8th, 2021
1,335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1.         public static bool UpdateBalance_Withdraw(int id, double amount)
  2.         {
  3.             string query = "update Accounts set balance=balance-" + amount + " where AccountID=" + id;
  4.             int result = DataHandler.ManipulateData(query);
  5.             if (result >= 1)
  6.             {
  7.                 return true;
  8.             }
  9.             return false;
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement