public static Sessions GetByCase(int id) { Sessions session = SessionDAL.GetByCase(id); if (session != null) { session.SessionQuestions = SessionQuestionDAL.GetBySession(session.SessionId); } return(session); }