public ASEGMENT getSegmentByID(string segment_id) { ASEGMENT segment = null; using (DBConnection_EF con = new DBConnection_EF()) { segment = segmentDAO.getByID(con, segment_id); } return(segment); }
public ASEGMENT getSegmentBySectionID(string id) { ASEGMENT segment = null; using (DBConnection_EF con = new DBConnection_EF()) { //ASECTION section = sectionDAO.getByID(con, id); ASECTION section = sectionDAO.getByID(commObjCacheManager, id); if (section != null) { segment = segmentDAO.getByID(con, section.SEG_NUM); } } return(segment); }