public Lesson GET(int lessonCode) { try { Lesson l = new Lesson(); return(l.CheckActive(lessonCode)); } catch (Exception ex) { throw new Exception("error with getting active" + ex); } }