コード例 #1
0
 public void AddCreditsToAccount(string username, int amount) // Adds a specified amount of credits to the recieving user
 {
     User user = GetUserByUsername(username);
     InsertCashTransaction insert = new InsertCashTransaction(user, amount);
 }
コード例 #2
0
ファイル: Stregsystem.cs プロジェクト: ciloltte/Stregsystem
        public void AddCreditsToAccount(int amount, string username)
        {
            Transaction trans = new InsertCashTransaction(log.GetNextTransactionID(), GetUser(username), amount);

            ExecuteTransaction(trans);
        }