/// <summary> /// Creates new question element. /// </summary> /// <param name="createQuestionModel"></param> /// <returns></returns> public async Task <PostResponseDto <Guid> > CreateQuestionElement(CreateQuestionElementViewModel createQuestionModel) { var token = this.authDataStorage.GetToken(); var createQuestionDto = Mapper.Map <CreateQuestionElementRequestDto>(createQuestionModel); createQuestionDto.QuestionElementString = this.InitCreateLocalizedStringRequest(createQuestionModel.QuestionElementString); return(await this.healthLibraryService.CreateQuestion(createQuestionDto, this.customerContext.Customer.Id, token)); }
public async Task <JsonResult> CreateQuestion(CreateQuestionElementViewModel createQuestionViewModel) { await careBuilderManager.CreateQuestionElement(createQuestionViewModel); return(Json("Ok")); }