Пример #1
0
        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));
        }
Пример #2
0
        public ArchivedVenueVersion(Venue venue, XDocument data, VenueDiff diff, AgentLoginData author,
                                    EntryEditEvent commonEditEvent, string notes)
            : base(data, author, venue.Version, venue.Status, notes)
        {
            ParamIs.NotNull(() => diff);

            Entry           = venue;
            Diff            = diff;
            CommonEditEvent = commonEditEvent;
        }