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 BusTypeSuggestion() { BusType = new BusType(); Device = new Device(); Bus = new Bus(); }
public Bus() { BusType = new BusType(); }