public static ArchivedVenueVersion Create(Venue venue, VenueDiff diff, AgentLoginData author, EntryEditEvent commonEditEvent, string notes) { var contract = new ArchivedVenueContract(venue, diff); var data = XmlHelper.SerializeToXml(contract); return(venue.CreateArchivedVersion(data, diff, author, commonEditEvent, notes)); }
private void CreateTrashedEntry(IDatabaseContext ctx, Venue venue, string notes) { var archived = new ArchivedVenueContract(venue, new VenueDiff(true)); var data = XmlHelper.SerializeToXml(archived); var trashed = new TrashedEntry(venue, data, GetLoggedUser(ctx), notes); ctx.Save(trashed); }