Ace.Web.Mvc.LinkTagHelper.Process C# (CSharp) Method

Process() public method

public Process ( TagHelperContext context, TagHelperOutput output ) : void
context TagHelperContext
output TagHelperOutput
return void
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            if (string.IsNullOrEmpty(this.Href))
            {
                return;
            }

            string href = this.Href;
            string _dt = dtString;
            if (href.IndexOf("?") > 0)
            {
                href = $"{href}&_dt={_dt}";
            }
            else
            {
                href = $"{href}?_dt={_dt}";
            }

            href = this.ViewContext.HttpContext.Content(href);
            output.Attributes.SetAttribute("href", href);
        }
    }