public void Withdraw(decimal money)
 {
     if (money > 0 && Balance >= money)
     {
         Balance -= money;
         Console.WriteLine(Balance);
         OnBalanceLow.Invoke(this, null);
         if (Balance <= 0)
         {
             OnBalanceFinished.Invoke(this, null);
         }
     }
 }
            public void Withdraw(decimal amount)
            {
                if (Balance >= amount)
                {
                    Balance -= amount;
                }
                Console.WriteLine($"Balans-dan {amount} azn pul cixidli. Balans: {Balance}");
                //else

                //check whether balance is low
                if (Balance <= 1000)
                {
                    //if(OnBalanceLow != null)
                    //    OnBalanceLow();

                    OnBalanceLow?.Invoke(this, new ATMEventArgs
                    {
                        CurrentBalance = Balance,
                        ActionTime     = DateTime.Now
                    });
                }
            }