/*public ReleaseEventDetailsContract GetReleaseEventDetailsByName(string name) { return HandleQuery(session => new ReleaseEventDetailsContract(session.Query<ReleaseEvent>().F(r => r.Name == name))); }*/ public void Archive(ISession session, ReleaseEvent releaseEvent, ReleaseEventDiff diff, EntryEditEvent reason) { var agentLoginData = SessionHelper.CreateAgentLoginData(session, PermissionContext); var archived = releaseEvent.CreateArchivedVersion(diff, agentLoginData, reason); session.Save(archived); }