Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public static void DeleteQuestion(VQuestions qBO)
 {
     Delete(qBO);
 }
Exemplo n.º 3
0
 public static void UpdateQuestion(VQuestions qBO)
 {
     Update(qBO);
 }
Exemplo n.º 4
0
 public static void InsertQuestion(VQuestions qBO)
 {
     Add(qBO);
 }