Esempio n. 1
0
        // GET: Vehicle/Details/5
        public async Task <IActionResult> Details(int?VehicleId)
        {
            ViewBag.UserId = HttpContext.Session.GetInt32("UserId");

            if (VehicleId == null)
            {
                return(NotFound());
            }

            var vehicle = await _vehicleLogic.GetSingleVehicle(VehicleId);

            if (vehicle == null)
            {
                return(NotFound());
            }

            return(View(vehicle));
        }