示例#1
0
        public bool Deposit(string bankId, string value)
        {
            int    account = 0;
            double ammount = 0;

            if (!int.TryParse(bankId, out account))
            {
                Console.WriteLine("Please, input a valid account number");
                return(false);
            }

            if (!double.TryParse(value, out ammount))
            {
                Console.WriteLine("Please, input a valid ammount");
                return(false);
            }

            _bankAccountRepository.Deposit(account, ammount);
            return(true);
        }