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)); }
public async Task <IActionResult> Index() { IEnumerable <Asset> assets = await _assetProcessor.GetAll(); return(View(assets)); }