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