/// <summary> /// Change SectionFileTranslation informations. /// </summary> /// <param name="request">sectionFileTranslation request.</param> /// <returns>SectionFileTranslation message.</returns> public SectionFileTranslationMessage UpdateSectionFileTranslation(SectionFileTranslationRequest request) { SectionFileTranslationMessage message = new SectionFileTranslationMessage(); try { _serviceSectionFileTranslation.UpdateSectionFileTranslation(request.ToPivot()); message.OperationSuccess = true; } catch (Exception e) { message.ErrorType = ErrorType.TechnicalError; message.ErrorMessage = e.Message; } return(message); }
/// <summary> /// Get list of SectionFileTranslation /// </summary> /// <returns>SectionFileTranslation message.</returns> public SectionFileTranslationMessage GetAllSectionFileTranslations() { SectionFileTranslationMessage message = new SectionFileTranslationMessage(); try { message = _serviceSectionFileTranslation.GetAllSectionFileTranslations().ToMessage(); message.OperationSuccess = true; } catch (Exception e) { message.ErrorType = ErrorType.TechnicalError; message.ErrorMessage = e.Message; } return(message); }