using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using RazorModelBinding.Models;

namespace RazorModelBinding.Pages
{
    public class PropertiesComplexModel : PageModel
    {
        //[BindProperty(SupportsGet=true)]
        [FromQuery]
        public Atleet Atleet { get; set; }

        public void OnGet([FromQuery] Atleet atleet)
        {
            Atleet = atleet;
        }
    }
}