public IActionResult GetFare(int id) { FareVM fares = new FareVM(); double Gia = _item.GetPrice(id); SearchVM Request = HttpContext.Session.GetObject <SearchVM>(SessionManager.Request); fares.DanhSach.Add(new Fare() { HanhKhach = "Người lớn", SoLuong = Request.NguoiLon, GiaVe = Gia * _item.GetDiscount(id, 1) }); fares.DanhSach.Add(new Fare() { HanhKhach = "Trẻ em", SoLuong = Request.TreEm, GiaVe = Gia * _item.GetDiscount(id, 2) }); fares.DanhSach.Add(new Fare() { HanhKhach = "Em bé", SoLuong = Request.EmBe, GiaVe = Gia * _item.GetDiscount(id, 3) }); fares.TenHangVe = "Economy"; return(PartialView("_Fare", fares)); }