/// <summary> /// Change SectionParagraphTraslation informations. /// </summary> /// <param name="request">sectionParagraphTraslation request.</param> /// <returns>SectionParagraphTraslation message.</returns> public SectionParagraphTranslationMessage UpdateSectionParagraphTranslation(SectionParagraphTranslationRequest request) { SectionParagraphTranslationMessage message = new SectionParagraphTranslationMessage(); try { _serviceSectionParagraphTraslation.UpdateSectionParagraphTranslation(request.ToPivot()); message.OperationSuccess = true; } catch (Exception e) { message.ErrorType = ErrorType.TechnicalError; message.ErrorMessage = e.Message; } return(message); }
/// <summary> /// Get list of SectionParagraphTraslation /// </summary> /// <returns>SectionParagraphTraslation message.</returns> public SectionParagraphTranslationMessage GetAllSectionParagraphTranslations() { SectionParagraphTranslationMessage message = new SectionParagraphTranslationMessage(); try { message = _serviceSectionParagraphTraslation.GetAllSectionParagraphTraslations().ToMessage(); message.OperationSuccess = true; } catch (Exception e) { message.ErrorType = ErrorType.TechnicalError; message.ErrorMessage = e.Message; } return(message); }