Exemplo n.º 1
0
        private ActivateActionLink(IPortalContext portalContext, int languageCode, ActivateAction action, bool enabled = true,
                                   UrlBuilder url = null, string portalName = null)
            : base(
                portalContext, languageCode, action, LinkActionType.Activate, enabled, url, portalName, DefaultButtonLabel,
                DefaultButtonTooltip)
        {
            Modal = new ViewActivateModal();

            if (url == null)
            {
                URL = EntityListFunctions.BuildControllerActionUrl("Activate", "EntityAction",
                                                                   new { area = "Portal", __portalScopeId__ = portalContext.Website.Id });
            }
        }
Exemplo n.º 2
0
 public ActivateActionLink()
 {
     Modal   = new ViewActivateModal();
     Enabled = false;
 }