public async Task <IActionResult> Details(int?id) { _logger.LogInformation("Chamando metodo Details informacoees dos veiculos -> GET: Vehicles/Details/5"); if (id == null) { return(NotFound()); } var vehicles = await _vehiclesService.FindById(id.Value); if (vehicles == null) { return(NotFound()); } return(View(vehicles)); }