示例#1
0
 public (Car, ApiError?) Get(Guid car_id)
 {
     if (_carsRepository.ContainsKey(car_id))
     {
         return(_carsRepository.Get(car_id), null);
     }
     return(null, ApiError.NotFound($"Car {car_id} does not exist"));
 }