public ActionResult ThongTinPhoiVe(int NguonVeXeId, string ngaydi)
        {
            if (this.CheckNoAccessIntoNhaXe(_workContext, _permissionService, StandardPermissionProvider.CVQLChuyen))
            {
                return(AccessDeniedView());
            }
            var model   = new DinhViXeModel();
            var _ngaydi = Convert.ToDateTime(ngaydi);

            model.NguonVeXeId = NguonVeXeId;
            var _nguonve = _hanhtrinhService.GetNguonVeXeById(NguonVeXeId);

            if (_nguonve != null)
            {
                model.GioDiText   = _nguonve.ThoiGianDi.ToString("HH:mm");
                model.GioDenText  = _nguonve.ThoiGianDen.ToString("HH:mm");
                model.TuyenXeChay = _nguonve.TenDiemDon + "-" + _nguonve.TenDiemDen;
            }
            var _historyxexuatben = _nhaxeService.GetHistoryXeXuatBenByNguonVeId(NguonVeXeId, _ngaydi);

            if (_historyxexuatben != null)
            {
                model.TenLaiXe1 = _historyxexuatben.ThongTinLaiPhuXe();
                model.TenLaiXe2 = _historyxexuatben.ThongTinLaiPhuXe(1);
                model.TenLaiXe3 = _historyxexuatben.ThongTinLaiPhuXe(2);
                model.BienSo    = _historyxexuatben.xevanchuyen.BienSo;
            }

            model.NgayDi  = _ngaydi;
            model.SoNguoi = _phoiveService.GetAllSoNguoi(NguonVeXeId, _ngaydi);
            model.Revenue = _phoiveService.GetRevenueHistoryXeXuatBen(NguonVeXeId, _ngaydi).ToTien(_priceFormatter);
            return(View(model));
        }
        public ActionResult BanDoDinhViXe()
        {
            if (this.CheckNoAccessIntoNhaXe(_workContext, _permissionService, StandardPermissionProvider.CVQLChuyen))
            {
                return(AccessDeniedView());
            }
            var model = new DinhViXeModel();

            return(View(model));
        }