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

            model.AssignmentPartId    = 291;
            model.AssignmentID        = 392;
            model.Title               = "Question 41";
            model.QuestionNumber      = 1.0M;
            model.MaxPoints           = 6.0M;
            model.AssignmentDate      = DateTime.Now;
            model.Weight              = 1.0M;
            model.isGraded            = false;
            model.QuestionPaperNumber = "1";

            var questions = await client.Update(model);

            return(View());
        }
Example #2
0
        public async Task <QuestionResponse.UpdateResponse> Update(QuestionApiUpdateModel model)
        {
            var response = await PutEncodedContentWithSimpleResponse <QuestionResponse.UpdateResponse, DefaultResponseApiModel, QuestionApiUpdateModel>(generalUri + "?assignmentId=" + model.AssignmentID, model);

            return(response);
        }