/// <summary>
        /// Create <see cref="TranslationEditViewModel"/>.
        /// </summary>
        /// <param name="data">Translation edit data.</param>
        public TranslationEditViewModel(TranslationPrivateEditData data)
        {
            if (data == null)
            {
                throw new ArgumentNullException(nameof(data));
            }

            ContentId          = data.ContentId;
            CustomHeaderMarkup = data.CustomHeaderMarkup;
            ContentMarkup      = data.ContentMarkup;
            Description        = data.Description;
            Title     = data.Title;
            Id        = data.Id;
            State     = data.State;
            UpdatedAt = data.UpdatedAt;
            UrlName   = data.UrlName;
            Version   = data.Version;
        }
        public static Translation UpdateFromTranslationPrivateEditData(this Translation translation, TranslationPrivateEditData translationEditData)
        {
            if (translation is null)
            {
                throw new ArgumentNullException(nameof(translation));
            }

            if (translationEditData is null)
            {
                throw new ArgumentNullException(nameof(translationEditData));
            }

            translation.CustomHeaderMarkup = translationEditData.CustomHeaderMarkup ?? throw new InvalidOperationException(nameof(translationEditData.CustomHeaderMarkup));
            translation.ContentMarkup      = translationEditData.ContentMarkup ?? throw new InvalidOperationException(nameof(translationEditData.ContentMarkup));
            translation.ContentId          = translationEditData.ContentId;
            translation.Description        = translationEditData.Description ?? throw new InvalidOperationException(nameof(translationEditData.Description));
            translation.State     = translationEditData.State;
            translation.Title     = translationEditData.Title ?? throw new InvalidOperationException(nameof(translationEditData.Title));
            translation.UpdatedAt = translationEditData.UpdatedAt;
            translation.UrlName   = translationEditData.UrlName ?? throw new InvalidOperationException(nameof(translationEditData.UrlName));
            translation.Version   = translationEditData.Version;

            return(translation);
        }