public void RegisterUserToExchange()
        {
            _consoleWriter.ClearConsole();
            _consoleWriter.WriteMessage("##### CRYPTOCURRENCY EXCHANGE #####\n");
            _consoleWriter.WriteMessage("# Register new user \n");

            _consoleWriter.WriteMessage("State your name: ");
            string userName = _validateInput.ValidateName();

            _consoleWriter.WriteMessage("Set your login: "******"Set your password: "******"User {newUser.Login} successfully registered!");
            _validateInput.PauseLoop();
        }
        public void DepositFunds()
        {
            DisplayHeader();

            _consoleWriter.WriteMessage("Enter deposit amount (PLN): ");
            var depositAmount = _validateInput.ValidateAmount();

            var deposit = new TransactionDto
            {
                Amount          = depositAmount,
                CurrencyName    = CurrencyNameEnum.Pln.ToString(),
                TransactionDate = DateTime.Now,
                UserId          = _showUser.ActiveUser.Id,
                Fiat            = depositAmount
            };

            _transactionService.RegisterTransaction(deposit);

            _consoleWriter.WriteMessage($"Deposit successfully registered!");
            _validateInput.PauseLoop();
        }
        public void LogInUserToExchange()
        {
            _consoleWriter.ClearConsole();
            _consoleWriter.WriteMessage("############# CRYPTOCURRENCY EXCHANGE #############\n");
            _consoleWriter.WriteMessage("# Log in \n");
            _consoleWriter.WriteMessage("  Login: "******"  Password: "******"Wrong login or password.");
                _validateInput.PauseLoop();
                return;
            }

            RunMainMenu(_showUser.ActiveUser);
            _mainMenu.Exit = false;
        }