public async Task <IActionResult> Index() { var listOperation = await _operationRepository.FindAllAsync(); var listParameter = await _parameterRepository.FindAllAsync(); if (listParameter.Any()) { foreach (var item in listOperation) { item.InvestValue = item.Quantity * item.Price - ((item.Quantity * item.Price) * (listParameter[0].TradingFee / 100)); } } return(View(listOperation)); }
public async Task <IActionResult> Index() { var list = await _parameterService.FindAllAsync(); return(View(list)); }