コード例 #1
0
        private long AddParkingLocation(string parkingLocationName, GPSCoordinates parkingLocationGPS, out string errorMessage)
        {
            long newId = -1;

            // write to database (newId == -1 in case of error, so no additional error handling required)
            DataAccessAdapter.AddParkingLocation(parkingLocationName, parkingLocationGPS, out newId, out errorMessage);

            return(newId);
        }