public ActionResult UpdateQuestionTag(OapChecklistQuestionTag model) { // TODO: Add update logic here var response = OapQuestionTagClient.UpdateQuestionTagAsync(model).Result; return(RedirectToAction("Index")); }
public async Task <ActionResult> CreateQuestionTag(OapChecklistQuestionTag model) { // TODO: Add insert logic here var response = await OapQuestionTagClient.AddQuestionTagAsync(model); return(RedirectToAction("Index")); }
public async Task <ActionResult> DeleteQuestionTag(OapChecklistQuestionTag model) { if (model.Id > 0) { var response = await OapQuestionTagClient.DeleteQuestionTagAsync(model.Id); } return(RedirectToAction("Index")); }
public async Task <ActionResult> QuestionTag() { var response = await OapQuestionTagClient.GetAllAsync(); return(PartialView("OapQuestionTagPartial", response.Result.Data)); }
public async Task <ActionResult> Index() { var response = await OapQuestionTagClient.GetAllAsync(); return(View("OapQuestionTag", response.Result.Data)); }