using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using ITVisions;
using Microsoft.AspNetCore.Razor.Runtime.TagHelpers;
using Microsoft.AspNetCore.Razor.TagHelpers;

namespace ITVisions
{
 
 public class WebsiteInfoTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
 {

  /// <summary>
  /// Komplexes Objekt als Parameter
  /// </summary>
  public WebsiteInfo Info { get; set; }

  public override void Process(TagHelperContext context, TagHelperOutput output)
  {
   output.TagName = "section";
   output.Content.SetContent(
    $@"Autor: {Info.Autor} (C) {Info.Jahr} Version {Info.Version}");
   output.TagMode = TagMode.StartTagAndEndTag;
  }
 }
}

