コード例 #1
0
        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));
        }
コード例 #2
0
        public async Task <IActionResult> Index()
        {
            var list = await _parameterService.FindAllAsync();

            return(View(list));
        }