public ResolveCaseActionLink(IPortalContext portalContext, GridMetadata gridMetadata, int languageCode,
                                     ResolveCaseAction resolveCaseAction, bool enabled = true, UrlBuilder url = null, string portalName = null)
            : this(portalContext, languageCode, resolveCaseAction, enabled, url, portalName)
        {
            if (gridMetadata.ResolveCaseDialog == null)
            {
                return;
            }

            Modal.CloseButtonCssClass   = gridMetadata.ResolveCaseDialog.CloseButtonCssClass;
            Modal.CloseButtonText       = gridMetadata.ResolveCaseDialog.CloseButtonText.GetLocalizedString(languageCode);
            Modal.CssClass              = gridMetadata.ResolveCaseDialog.CssClass;
            Modal.DismissButtonSrText   = gridMetadata.ResolveCaseDialog.DismissButtonSrText.GetLocalizedString(languageCode);
            Modal.PrimaryButtonCssClass = gridMetadata.ResolveCaseDialog.PrimaryButtonCssClass;
            Modal.PrimaryButtonText     = gridMetadata.ResolveCaseDialog.PrimaryButtonText.GetLocalizedString(languageCode);
            Modal.Size          = gridMetadata.ResolveCaseDialog.Size;
            Modal.Title         = gridMetadata.ResolveCaseDialog.Title.GetLocalizedString(languageCode);
            Modal.TitleCssClass = gridMetadata.ResolveCaseDialog.TitleCssClass;
        }
        private ResolveCaseActionLink(IPortalContext portalContext, int languageCode, ResolveCaseAction action,
                                      bool enabled = true, UrlBuilder url = null, string portalName = null)
            : base(portalContext, languageCode, action, LinkActionType.ResolveCase, enabled, url, portalName,
                   DefaultButtonLabel, DefaultButtonTooltip)
        {
            Modal = new ViewResolveCaseModal();

            if (url == null)
            {
                URL = EntityListFunctions.BuildControllerActionUrl("ResolveCase", "EntityAction",
                                                                   new { area = "Portal", __portalScopeId__ = portalContext.Website.Id });
            }

            var subjectLabel     = action.SubjectLabel.GetLocalizedString(languageCode);
            var descriptionLabel = action.DescriptionLabel.GetLocalizedString(languageCode);

            SubjectLabel     = !string.IsNullOrWhiteSpace(subjectLabel) ? subjectLabel : DefaultSubjectLabel;
            DescriptionLabel = !string.IsNullOrWhiteSpace(descriptionLabel) ? descriptionLabel : DefaultDescriptionLabel;
        }