Ejemplo n.º 1
0
 public void payoff(int money, DateTime date, string thing)
 {
     if (money > 0)
     {
         var deposit = new Tranzaction(-money, date, thing);
         cash.Add(deposit);
     }
     else
     {
         Console.WriteLine("You can not insert minuse number of money to payoff");
     }
 }
Ejemplo n.º 2
0
 public void payment(int money, DateTime date, string thing)
 {
     if (money > 0)
     {
         var deposit = new Tranzaction(money, date, thing);
         cash.Add(deposit);
     }
     else
     {
         Console.WriteLine("Transfer amount can not be at minus! ");
     }
 }