示例#1
0
文件: SessionBLL.cs 项目: ahmgeek/crm
        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));
 }