public async Task <IActionResult> Details(Guid?id) { if (id == null) { return(BadRequest()); } var vehicle = await service.GetIdMake(id); if (vehicle == null) { return(NotFound()); } VehicleMakeView getVehicle = mapper.Map <VehicleMakeView>(vehicle); return(View(getVehicle)); }