Ejemplo n.º 1
0
        public async Task <IActionResult> AssignedPairs(int id)
        {
            IEnumerable <Asset> assets = await _assetProcessor.GetAll();

            IEnumerable <PairConfig> assignedPairs = await _pairConfigProcessor.GetAssigned(id);

            PairConfigsModel model = new PairConfigsModel();

            model.ExchangeCode = id;
            model.ExchangeName = ExchangeCode.Create(id).Description;
            model.Configs      = assignedPairs.ToList();
            model.AllAssets    = assets.Select(x => new SelectListItem(x.Name, x.Code)).ToList();

            return(View(model));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Index()
        {
            IEnumerable <Asset> assets = await _assetProcessor.GetAll();

            return(View(assets));
        }