public Task Add(Task entity)
 {
     using (IDocumentSession session = _store.OpenSession())
     {
         session.Store(entity);
         session.SaveChanges();
     }
     return entity;
 }
 public Task Update(Task entity)
 {
     throw new NotImplementedException();
 }
 public Task Update(Task entity)
 {
     //using (IDocumentSession session = _store.OpenSession())
     //{
     //    var wawel = session.Load<Task>("locations/1");
     //    wawel.Description = "changed description";
     //    session.SaveChanges();
     //}
     throw new NotImplementedException();
 }
 public Task Add(Task task)
 {
     task.TaskId = _nextId++;
     _tasks.Add(task);
     return task;
 }