public ActionResult CashIn()
        {
            var account_view =
                _query_service.query_for_single <AccountView>(
                    x => x.player_token == _player_authenticator.get_player_token());

            var account_information_view = new AccountInformationView();

            account_information_view.player_is_logged_in = true;
            account_information_view.player_name         = account_view.name;

            var cash_in_view = new CashInView()
            {
                account_information_view = account_information_view
            };

            return(View(cash_in_view));
        }
Example #2
0
        public ActionResult Index()
        {
            var account_view =
                _query_service.query_for_single <AccountView>(
                    x => x.player_token == _player_authenticator.get_player_token());

            var account_information_view = new AccountInformationView();

            account_information_view.player_is_logged_in = true;
            account_information_view.player_name         = account_view.name;

            var account_view_model = new AccountHomeView()
            {
                account_view             = account_view,
                account_information_view = account_information_view
            };

            return(View(account_view_model));
        }