// GET: VehicleMakes/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } VehicleMake vehicleMake = vehicleMakeLogic.FindVehicleMake((int)id); VehicleMakeViewModel vehicleMakeVM = Mapper.Map <VehicleMakeViewModel>(vehicleMake); if (vehicleMake == null) { return(HttpNotFound()); } return(View("~/Views/Admin/VehicleMakes/Details.cshtml", vehicleMakeVM)); }