/// <summary> /// Change ActivityFileTranslation informations. /// </summary> /// <param name="request">activityFileTranslation request.</param> /// <returns>ActivityFileTranslation message.</returns> public ActivityFileTranslationMessage UpdateActivityFileTranslation(ActivityFileTranslationRequest request) { ActivityFileTranslationMessage message = new ActivityFileTranslationMessage(); try { _serviceActivityFileTranslation.UpdateActivityFileTranslation(request.ToPivot()); message.OperationSuccess = true; } catch (Exception e) { message.ErrorType = ErrorType.TechnicalError; message.ErrorMessage = e.Message; } return(message); }
/// <summary> /// Get list of ActivityFileTranslation /// </summary> /// <returns>ActivityFileTranslation message.</returns> public ActivityFileTranslationMessage GetAllActivityFileTranslations() { ActivityFileTranslationMessage message = new ActivityFileTranslationMessage(); try { message = _serviceActivityFileTranslation.GetAllActivityFileTranslations().ToMessage(); message.OperationSuccess = true; } catch (Exception e) { message.ErrorType = ErrorType.TechnicalError; message.ErrorMessage = e.Message; } return(message); }