private void SaveNewEmployee(Employee employee)
        {
            using (var session = _store.OpenSession())
            {
                var document = new EmployeeEvents(
                    employee.Id,
                    employee.PendingEvents
                    );
                session.Store(document);

                session.Advanced.GetMetadataFor(document)
                .Add(EmployeeEntityVersion, employee.Version);

                session.SaveChanges();
            }
        }
        private void SaveNewEmployee(Employee employee)
        {
            using (var session = _store.OpenSession())
            {
                var document = new EmployeeEvents(
                    employee.Id,
                    employee.PendingEvents
                    );
                session.Store(document);

                session.Advanced.GetMetadataFor(document)
                    .Add(EmployeeEntityVersion, employee.Version);

                session.SaveChanges();
            }
        }