Esempio n. 1
0
        public async Task<ActionResult> Index()
        {
            var id = this.GetTraderId();
            var viewModel = new MarketPlaceIndexViewModel
            {
                Trader = await _tradersRepository.GetByIdAsync(id),
                CurrencyBalances = await _srvBalanceAccess.GetCurrencyBalances(id)
            };

            return View(viewModel);
        }
        public async Task<ActionResult> Index()
        {
            var id = this.GetTraderId();
            var viewModel = new MarketPlaceIndexViewModel
            {
                Assets = _assetsDictionary.GetAll().ToDictionary(itm => itm.Id),
                Trader = await _clientAccountsRepository.GetByIdAsync(id),
                CurrencyBalances = await _srvBalanceAccess.GetCurrencyBalances(id)
            };

            return View(viewModel);
        }