Пример #1
0
 public void UpdateBranchData(Branch branch)
 {
     DeleteBranchData(branch.SerialNo);
     InsertBranchData(branch);
 }
Пример #2
0
 public void InsertBranchData(Branch branch)
 {
     using (var session = DocumentStore.OpenSession())
     {
         session.Store(branch);
         session.SaveChanges();
     }
 }