Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public string SelectJSONFromAPI(string requestString)
 {
     ApiContext = new GetQuestionAPIContext();
     return(ApiContext.SelectJSONFromAPI(requestString));
 }