ThrowIfThisIsNotNew method

void ThrowIfThisIsNotNew()
Throws exception if this is not a new service object.

Implementation

void ThrowIfThisIsNotNew() {
  if (!IsNew) {
    throw InvalidOperationException("Strings.ServiceObjectAlreadyHasId");
  }
}