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 Application() { Plataform = new Plataform(); }