示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }