Beispiel #1
0
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            RouteValues.Add("desc", IsDescending.ToString().ToLower());
            RouteValues.Add("order", OrderBy);

            foreach (var(key, value) in QueryValues.Where(kv => kv.Value != null))
            {
                RouteValues.Add(key, value.ToString());
            }

            output.PreElement.AppendHtmlLine("<nav class=\"pagination\" role=\"navigation\">");

            base.Process(context, output);

            output.PostElement.AppendHtmlLine("</nav>");
        }
Beispiel #2
0
 /// <summary>
 /// Returns a <see cref="System.String"/> that represents this instance.
 /// </summary>
 /// <returns>
 /// A <see cref="System.String"/> that represents this instance.
 /// </returns>
 public override string ToString()
 {
     return(FieldName + "-" + IsDescending.ToString());
 }