public IEnumerable<Passage> ListPassage() { using (HibernateConnection hibernateConnection = new HibernateConnection()) { using (HibernateRepository<Passage> hibernateRepository = new HibernateRepository<Passage>(hibernateConnection)) { var passage = hibernateRepository.List(); return passage; } } }
public IEnumerable<nanoit.sptrans.hackatona.core.domain.entity.Application> GetLastApplication() { 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.List(); return application; } } }