public IActionResult List([FromQuery] int idEmpresa) { bl.VehiculoController controladorVehiculo = new bl.VehiculoController(); try { var _vehiculos = controladorVehiculo.ListarVehiculos(idEmpresa); if (_vehiculos != null) { return(Ok(_vehiculos)); } else { return(NotFound("No existe la Empresa.")); } } catch (Exception e) { return(Ok(new { result = false, message = e.Message })); } }