//Huang Yuzhe public ActionResult Voucher() { List <StockRecord> vouchers = _stockRecordDAO.FindVoucher(); List <float> prices = new List <float>(); foreach (StockRecord voucher in vouchers) { float price = _itemDAO.FindPriceById(voucher.IdItem); prices.Add(price); } ViewData["prices"] = prices; ViewData["vouchers"] = vouchers; return(View()); }