public bool InsertQuestionDatabase(string question, List <string> incorrect_Answers, string correct_Answer, string difficulty, string category) { QuestionDTO questionDTO = new QuestionDTO(question, incorrect_Answers, correct_Answer); ApiContext = new GetQuestionAPIContext(); return(ApiContext.InsertQuestionDatabase(questionDTO, difficulty, category)); }
public string SelectJSONFromAPI(string requestString) { ApiContext = new GetQuestionAPIContext(); return(ApiContext.SelectJSONFromAPI(requestString)); }