public void OnBeforeSaveChanges(InMemoryDocumentSessionOperations session) { ReturnDocument = session.IsLoaded(Id); }