public static Sessions GetByCase(int id) { Sessions session = SessionDAL.GetByCase(id); if (session != null) { session.SessionQuestions = SessionQuestionDAL.GetBySession(session.SessionId); } return(session); }
public static int Update(SessionQuestion sessionQuestion) { sessionQuestion.SessionQuestionId = SessionQuestionDAL.Update(sessionQuestion); return(sessionQuestion.SessionQuestionId); }
public static int Insert(SessionQuestion sessionQuestion) { sessionQuestion.SessionQuestionId = SessionQuestionDAL.Insert(sessionQuestion); return(sessionQuestion.SessionQuestionId); }
public static List <SessionQuestion> GetBySession(int sessionId) { return(SessionQuestionDAL.GetBySession(sessionId)); }
public static List <SessionQuestion> GetByCase(int id) { return(SessionQuestionDAL.GetByCase(id)); }
public static SessionQuestion GetItem(int id) { return(SessionQuestionDAL.GetItem(id)); }