public bool Insert(EntRelDomain enitity)
 {
     try
     {
         using(var session = SessionFactory.OpenSession())
         using (var tx = session.BeginTransaction())
         {
             session.Save(enitity);
             return true;
         }
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         return false;
     }
 }
 public bool Update(EntRelDomain entity)
 {
     try
     {
         using(var session = SessionFactory.OpenStatelessSession())
         using(var tx = session.BeginTransaction())
         {
             session.Update(entity);
             return true;
         }
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         return false;
     }
 }