private ConvertOrderToInvoiceActionLink(IPortalContext portalContext, int languageCode,
                                                ConvertOrderToInvoiceAction action, bool enabled = true, UrlBuilder url = null, string portalName = null)
            : base(
                portalContext, languageCode, action, LinkActionType.ConvertOrder, enabled, url, portalName, DefaultButtonLabel,
                DefaultButtonTooltip)
        {
            Modal = new ViewConvertOrderModal();

            URL = EntityListFunctions.BuildControllerActionUrl("ConvertOrderToInvoice", "EntityAction",
                                                               new { area = "Portal", __portalScopeId__ = portalContext.Website.Id });
        }
        public ConvertOrderToInvoiceActionLink(IPortalContext portalContext, GridMetadata gridMetadata, int languageCode,
                                               ConvertOrderToInvoiceAction action, bool enabled = true, UrlBuilder url = null, string portalName = null)
            : this(portalContext, languageCode, action, enabled, url, portalName)
        {
            if (gridMetadata.ConvertOrderDialog == null)
            {
                return;
            }

            Modal.CloseButtonCssClass   = gridMetadata.ConvertOrderDialog.CloseButtonCssClass;
            Modal.CloseButtonText       = gridMetadata.ConvertOrderDialog.CloseButtonText.GetLocalizedString(languageCode);
            Modal.CssClass              = gridMetadata.ConvertOrderDialog.CssClass;
            Modal.DismissButtonSrText   = gridMetadata.ConvertOrderDialog.DismissButtonSrText.GetLocalizedString(languageCode);
            Modal.PrimaryButtonCssClass = gridMetadata.ConvertOrderDialog.PrimaryButtonCssClass;
            Modal.PrimaryButtonText     = gridMetadata.ConvertOrderDialog.PrimaryButtonText.GetLocalizedString(languageCode);
            Modal.Size          = gridMetadata.ConvertOrderDialog.Size;
            Modal.Title         = gridMetadata.ConvertOrderDialog.Title.GetLocalizedString(languageCode);
            Modal.TitleCssClass = gridMetadata.ConvertOrderDialog.TitleCssClass;
        }