public bool SaveLocation(LocationDetails locationDetails) { DatabaseLocation dbLocation = new DatabaseLocation(locationDetails); dbLocation.EscapeStringFields(); if (dbLocation.LocationId > 0) { return(_dbQueryService.PersistExistingLocation(dbLocation)); } else { return(_dbQueryService.PersistNewLocation(dbLocation)); } }