/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="url">URL to the service to complete the delete request.</param>
 /// <param name="enabled">Indicates if the link is enabled or not.</param>
 /// <param name="label">Text displayed for the button.</param>
 /// <param name="tooltip">Text displayed for a tooltip.</param>
 /// <param name="queryStringIdParameterName">Name of the query string parameter that will contain the id of the record.</param>
 /// <param name="confirmation">Confirmation message to be displayed in the modal prompt before the delete request is attempted.</param>
 public DeleteActionLink(UrlBuilder url, bool enabled = false, string label       = null,
                         string tooltip = null, string queryStringIdParameterName = "id", string confirmation = null)
 {
     Confirmation = confirmation == null ? DefaultConfirmation : confirmation;
     Modal        = new ViewDeleteModal();
     Type         = LinkActionType.Delete;
     Enabled      = enabled;
     URL          = url;
     Label        = label == null ? DefaultButtonLabel : label;
     Tooltip      = tooltip == null ? DefaultButtonTooltip : tooltip;
     QueryStringIdParameterName = queryStringIdParameterName;
 }
        public DeleteActionLink(IPortalContext portalContext, int languageCode, DeleteAction action,
                                bool enabled = true, UrlBuilder url = null, string portalName = null)
            : base(
                portalContext, languageCode, action, LinkActionType.Delete, enabled, url, portalName, DefaultButtonLabel,
                DefaultButtonTooltip)
        {
            if (string.IsNullOrWhiteSpace(Confirmation))
            {
                Confirmation = DefaultConfirmation;
            }

            Modal = new ViewDeleteModal();

            if (url == null)
            {
                URL = EntityListFunctions.BuildControllerActionUrl("Delete", "EntityGrid",
                                                                   new { area = "Portal", __portalScopeId__ = portalContext.Website.Id });
            }
        }
 public DeleteActionLink()
 {
     Modal = new ViewDeleteModal();
 }