private CloseIncidentActionLink(IPortalContext portalContext, int languageCode, CloseIncidentAction action,
                                        bool enabled = true, UrlBuilder url = null, string portalName = null)
            : base(
                portalContext, languageCode, action, LinkActionType.CloseIncident, enabled, url, portalName, DefaultButtonLabel,
                DefaultButtonTooltip)
        {
            Modal = new ViewCloseIncidentModal();

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

            var defaultResolution            = action.DefaultResolution;
            var defaultResolutionDescription = action.DefaultResolutionDescription;

            DefaultResolution            = !string.IsNullOrWhiteSpace(defaultResolution) ? defaultResolution : DefaultResolutionLabel;
            DefaultResolutionDescription = !string.IsNullOrWhiteSpace(defaultResolutionDescription) ? defaultResolutionDescription : DefaultResolutionDescriptionLabel;
        }
 public CloseIncidentActionLink()
 {
     Modal   = new ViewCloseIncidentModal();
     Enabled = false;
 }