public Suggestion GetSuggestion(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Suggestion> hibernateRepository = new HibernateRepository<Suggestion>(hibernateConnection))
         {
             var suggestion = hibernateRepository.FindOne(x => x.Id == pId);
             return suggestion;
         }
     }
 }
 public BusType GetBusType(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<BusType> hibernateRepository = new HibernateRepository<BusType>(hibernateConnection))
         {
             var busType = hibernateRepository.FindOne(x => x.Id == pId);
             return busType;
         }
     }
 }
 public LineRoute GetLineRoute(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<LineRoute> hibernateRepository = new HibernateRepository<LineRoute>(hibernateConnection))
         {
             var lineRoute = hibernateRepository.FindOne(x => x.Id == pId);
             return lineRoute;
         }
     }
 }
 public Plataform GetPlataform(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Plataform> hibernateRepository = new HibernateRepository<Plataform>(hibernateConnection))
         {
             var plataform = hibernateRepository.FindOne(x => x.Id == pId);
             return plataform;
         }
     }
 }
 public Error GetError(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Error> hibernateRepository = new HibernateRepository<Error>(hibernateConnection))
         {
             var error = hibernateRepository.FindOne(x => x.Id == pId);
             return error;
         }
     }
 }
 public Device GetDevice(string pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Device> hibernateRepository = new HibernateRepository<Device>(hibernateConnection))
         {
             var device = hibernateRepository.FindOne(x => x.Id == pId);
             return device;
         }
     }
 }
 public Passage GetPassage(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<Passage> hibernateRepository = new HibernateRepository<Passage>(hibernateConnection))
         {
             var passage = hibernateRepository.FindOne(x => x.Id == pId);
             return passage;
         }
     }
 }
 public LogAccess GetLogAccess(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<LogAccess> hibernateRepository = new HibernateRepository<LogAccess>(hibernateConnection))
         {
             var logAccess = hibernateRepository.FindOne(x => x.Id == pId);
             return logAccess;
         }
     }
 }
 public LogSearch GetLogSearch(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<LogSearch> hibernateRepository = new HibernateRepository<LogSearch>(hibernateConnection))
         {
             var logSearch = hibernateRepository.FindOne(x => x.Id == pId);
             return logSearch;
         }
     }
 }
 public nanoit.sptrans.hackatona.core.domain.entity.Application GetApplication(int pId)
 {
     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 application = hibernateRepository.FindOne(x => x.Id == pId);
             return application;
         }
     }
 }
 public LogFeature GetLogFeature(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<LogFeature> hibernateRepository = new HibernateRepository<LogFeature>(hibernateConnection))
         {
             var logFeature = hibernateRepository.FindOne(x => x.Id == pId);
             return logFeature;
         }
     }
 }
 public LineDetail GetLineDetail(int pId)
 {
     using (HibernateConnection hibernateConnection = new HibernateConnection())
     {
         using (HibernateRepository<LineDetail> hibernateRepository = new HibernateRepository<LineDetail>(hibernateConnection))
         {
             var lineDetail = hibernateRepository.FindOne(x => x.Id == pId);
             return lineDetail;
         }
     }
 }