Beispiel #1
0
        public int AddMoney()
        {
            int amount = user.Level * 10;

            ApplicationRepository.AddMoneyForUser(user, amount);
            NotifyObservers(ActionType.MoneyChanged, user.Money);
            return(amount);
        }