public bool SaveOrUpdateLineRoute(LineRoute pLineRoute)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<LineRoute> hibernateRepository = new HibernateRepository<LineRoute>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pLineRoute);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }
 public bool SaveOrUpdateSuggestion(Suggestion pSuggestion)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Suggestion> hibernateRepository = new HibernateRepository<Suggestion>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pSuggestion);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }
 public bool SaveOrUpdatePlataform(Plataform pPlataform)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Plataform> hibernateRepository = new HibernateRepository<Plataform>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pPlataform);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }
 public bool SaveOrUpdateBusType(BusType pBusType)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<BusType> hibernateRepository = new HibernateRepository<BusType>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pBusType);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }
 public bool SaveOrUpdatePassage(Passage pPassage)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Passage> hibernateRepository = new HibernateRepository<Passage>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pPassage);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }
 public bool SaveOrUpdateDevice(Device pDevice)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Device> hibernateRepository = new HibernateRepository<Device>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pDevice);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }
 public bool SaveOrUpdateLogSearch(LogSearch pLogSearch)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<LogSearch> hibernateRepository = new HibernateRepository<LogSearch>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pLogSearch);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }
 public bool SaveOrUpdateApplication(nanoit.sptrans.hackatona.core.domain.entity.Application pApplication)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<nanoit.sptrans.hackatona.core.domain.entity.Application> hibernateRepository = new HibernateRepository<nanoit.sptrans.hackatona.core.domain.entity.Application>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pApplication);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }
 public bool SaveOrUpdateApplicationWarning(ApplicationWarning pApplicationWarning)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<ApplicationWarning> hibernateRepository = new HibernateRepository<ApplicationWarning>(hibernateConnection))
         {
             var insertEntity = hibernateRepository.SaveOrUpdate(pApplicationWarning);
             if (insertEntity == null)
             {
                 return false;
             }
             else
             {
                 return true;
             }
         }
     }
 }