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
        public void AddCreditsToAccount(int amount, string username)
        {
            Transaction trans = new InsertCashTransaction(log.GetNextTransactionID(), GetUser(username), amount);

            ExecuteTransaction(trans);
        }