コード例 #1
0
        public ActionResult UpdateQuestionTag(OapChecklistQuestionTag model)
        {
            // TODO: Add update logic here
            var response = OapQuestionTagClient.UpdateQuestionTagAsync(model).Result;

            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public async Task <ActionResult> CreateQuestionTag(OapChecklistQuestionTag model)
        {
            // TODO: Add insert logic here
            var response = await OapQuestionTagClient.AddQuestionTagAsync(model);

            return(RedirectToAction("Index"));
        }
コード例 #3
0
 public async Task <ActionResult> DeleteQuestionTag(OapChecklistQuestionTag model)
 {
     if (model.Id > 0)
     {
         var response = await OapQuestionTagClient.DeleteQuestionTagAsync(model.Id);
     }
     return(RedirectToAction("Index"));
 }
コード例 #4
0
        public async Task <ActionResult> QuestionTag()
        {
            var response = await OapQuestionTagClient.GetAllAsync();

            return(PartialView("OapQuestionTagPartial", response.Result.Data));
        }
コード例 #5
0
        public async Task <ActionResult> Index()
        {
            var response = await OapQuestionTagClient.GetAllAsync();

            return(View("OapQuestionTag", response.Result.Data));
        }