public void Add(Bug addedBug)
 {
     using (var session = _store.OpenSession())
     {
         session.Store(addedBug);
         session.SaveChanges();
     }
 }
        public void Update(Bug updatedBug)
        {
            using (var session = _store.OpenSession())
            {
                var exisitingBug = session.Load<Bug>(updatedBug.Id);
                if (exisitingBug == null)
                {
                    return;
                }
                exisitingBug.Description = updatedBug.Description;
                exisitingBug.Hours = updatedBug.Hours;
                exisitingBug.Name = updatedBug.Name;
                exisitingBug.PriorityIndex = updatedBug.PriorityIndex;

                session.SaveChanges();
            }
        }