public void RegisterRemoved(IAggregateRoot entity,
                             IUnitOfWorkRepository unitofWorkRepository)
 {
     SessionFactory.GetCurrentSession().Delete(entity);
 }
 public void RegisterNew(IAggregateRoot entity,
                         IUnitOfWorkRepository unitofWorkRepository)
 {
     SessionFactory.GetCurrentSession().Save(entity);
 }