Exemplo n.º 1
0
        public ActionResult Voucher(int id)
        {
            VehicleVoucherViewModel vehicle = new VehicleVoucherViewModel();

            vehicle = vehicle.toViewModel(db.Vehicles.Find(id));

            return(View(vehicle));
        }
Exemplo n.º 2
0
        public ActionResult Voucher(int id)
        {
            VehicleVoucherViewModel voucherView = new VehicleVoucherViewModel();
            //vehicle = vehicle.toViewModel(db.Vehicles.Find(id));
            Vehicle vehicle = db.Vehicles.Find(id);
            Member  member  = db.Members.Find(id);

            voucherView = voucherView.toViewModel(vehicle, member);

            return(View(voucherView));
        }