public async Task <IHttpActionResult> UpdateQuestionElementLocalizedStrings( int customerId, Guid questionElementId, UpdateQuestionElementLocalizedRequestDto model, string language ) { var result = await questionElementHelper.UpdateLocalizedString(customerId, questionElementId, model); if (result == null) { return(NotFound()); } return(StatusCode(HttpStatusCode.NoContent)); }
/// <summary> /// Updates question element with provided dto. /// </summary> /// <param name="customerId">The customer identifier.</param> /// <param name="questionElementId">The question element identifier.</param> /// <param name="dto">The dto.</param> /// <returns></returns> public async Task <QuestionElementResponseDto> UpdateLocalizedString(int customerId, Guid questionElementId, UpdateQuestionElementLocalizedRequestDto dto) { var localizedString = await MapAnswerString(dto.QuestionElementString); var result = await this.questionElementService.UpdateLocalizedString(customerId, questionElementId, localizedString); return(Mapper.Map <QuestionElementResponseDto>(result)); }