using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.Extensions.Logging;
using TagHelpers.Models;

namespace TagHelpers.Pages
{
    public class IndexModel : PageModel
    {
        public List<Gebruiker> Gebruikers { get; set; }
        private readonly ILogger<IndexModel> _logger;

        public IndexModel(ILogger<IndexModel> logger)
        {
            _logger = logger;
        }

        public void OnGet()
        {
            Gebruikers = new List<Gebruiker> {
                new Gebruiker{Naam="Arthur Dent", EmailAdres="arthur.dent@earth.email"},
                new Gebruiker{Naam="Ford Prefect", EmailAdres="fordp@guide.glxy"},
                new Gebruiker{Naam="Zaphod Beeblebrox", EmailAdres="zaphod@president.glxy"}
            };
        }
    }
}
