public void AddCustomer(Customer cust) { using (var documentStore = new DocumentStore() { Url = STORE_URL }) { documentStore.Initialize(); using (IDocumentSession session = documentStore.OpenSession(STORE_NAME)) { session.Store(cust); session.SaveChanges(); } } }
public void UpdateCustomer(Customer cust) { throw new NotImplementedException(); }