public void Add(HistoryEntry item) { item.Date = DateTime.Now; var list = Deserialize(); list.Add(item); Serialize(list); }
public void Add(HistoryEntry entry) { using (var session = DocumentStore.OpenSession()) { session.Store(entry); session.SaveChanges(); } }