Exemplo n.º 1
0
        /// <summary>
        /// Change ThemeTranslation informations.
        /// </summary>
        /// <param name="request">themeTranslation request.</param>
        /// <returns>ThemeTranslation message.</returns>
        public ThemeTranslationMessage UpdateThemeTranslation(ThemeTranslationRequest request)
        {
            ThemeTranslationMessage message = new ThemeTranslationMessage();

            try
            {
                _serviceThemeTranslation.UpdateThemeTranslation(request.ToPivot());
                message.OperationSuccess = true;
            }
            catch (Exception e)
            {
                message.ErrorType    = ErrorType.TechnicalError;
                message.ErrorMessage = e.Message;
            }
            return(message);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get list of ThemeTranslation
        /// </summary>
        /// <returns>ThemeTranslation message.</returns>
        public ThemeTranslationMessage GetAllThemeTranslations()
        {
            ThemeTranslationMessage message = new ThemeTranslationMessage();

            try
            {
                message = _serviceThemeTranslation.GetAllThemeTranslations().ToMessage();
                message.OperationSuccess = true;
            }
            catch (Exception e)
            {
                message.ErrorType    = ErrorType.TechnicalError;
                message.ErrorMessage = e.Message;
            }
            return(message);
        }