/// <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); }
/// <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); }