public Tuple <Quiz, List <Questions> > DeleteQuizQuestions(string QuizId, string QuestionId) { QuestionRepo repo = new QuestionRepo(); int QuizID = 0; int QuestionID = 0; int.TryParse(QuizId, out QuizID); int.TryParse(QuestionId, out QuestionID); bool result = repo.DeleteQuestion(QuizID, QuestionID); if (result) { return(repo.LoadAllQuizQuestions(QuizID)); } else { return(null); } }
public Tuple <Quiz, List <Questions> > LoadQuizQuestions(int QuizId) { QuestionRepo rep = new QuestionRepo(); return(rep.LoadAllQuizQuestions(QuizId)); }