示例#1
0
 //Lay dap an cho 1 cau hoi.
 public static VAnswers GetTrueAnswerForQuestion(VQuestions qBO)
 {
     VAnswers aBO = (from answer in qBO.GetForeignList<VAnswers>(a => a.QuestionID == qBO.QuestionID)
                   where answer.IsTrue == true
                   select answer).Single<VAnswers>();
     return aBO;
 }
示例#2
0
 public static void DeleteQuestion(VQuestions qBO)
 {
     Delete(qBO);
 }
示例#3
0
 public static void UpdateQuestion(VQuestions qBO)
 {
     Update(qBO);
 }
示例#4
0
 public static void InsertQuestion(VQuestions qBO)
 {
     Add(qBO);
 }