public List <QuestionOptions> DeleteQuestionOption(int QuestionId, int OptionId) { QuestionRepo repo = new QuestionRepo(); bool result = repo.DeleteQuestionOption(QuestionId, OptionId); if (result) { return(repo.LoadQuestionOptions(QuestionId)); } else { return(null); } }
public List <QuestionOptions> LoadQuestionOptions(int QuestionId) { QuestionRepo repo = new QuestionRepo(); return(repo.LoadQuestionOptions(QuestionId)); }