Пример #1
0
        public static Sessions GetByCase(int id)
        {
            Sessions session = SessionDAL.GetByCase(id);

            if (session != null)
            {
                session.SessionQuestions = SessionQuestionDAL.GetBySession(session.SessionId);
            }
            return(session);
        }
Пример #2
0
 public static int Update(SessionQuestion sessionQuestion)
 {
     sessionQuestion.SessionQuestionId = SessionQuestionDAL.Update(sessionQuestion);
     return(sessionQuestion.SessionQuestionId);
 }
Пример #3
0
 public static int Insert(SessionQuestion sessionQuestion)
 {
     sessionQuestion.SessionQuestionId = SessionQuestionDAL.Insert(sessionQuestion);
     return(sessionQuestion.SessionQuestionId);
 }
Пример #4
0
 public static List <SessionQuestion> GetBySession(int sessionId)
 {
     return(SessionQuestionDAL.GetBySession(sessionId));
 }
Пример #5
0
 public static List <SessionQuestion> GetByCase(int id)
 {
     return(SessionQuestionDAL.GetByCase(id));
 }
Пример #6
0
 public static SessionQuestion GetItem(int id)
 {
     return(SessionQuestionDAL.GetItem(id));
 }