//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; }
public static void DeleteQuestion(VQuestions qBO) { Delete(qBO); }
public static void UpdateQuestion(VQuestions qBO) { Update(qBO); }
public static void InsertQuestion(VQuestions qBO) { Add(qBO); }