Example #1
0
        public async Task <ActionResult> AddQuestion()
        {
            QuestionApiAddModel model = new QuestionApiAddModel();

            model.AssignmentID        = 392;
            model.Title               = "Question 112";
            model.QuestionNumber      = 1;
            model.MaxPoints           = 6;
            model.AssignmentDate      = DateTime.Now;
            model.Weight              = 1;
            model.isGraded            = false;
            model.QuestionPaperNumber = "1";


            var questions = await client.AddNew(model);

            return(View());
        }
Example #2
0
        public async Task <QuestionResponse.AddResponse> AddNew(QuestionApiAddModel model)
        {
            var response = await PostEncodedContent <QuestionResponse.AddResponse, DefaultResponseApiModel, QuestionApiAddModel>(generalUri, model);

            return(response);
        }