@using System.Security.Claims @model int @{ var dateOfBirth = User.FindFirst(c => c.Type == ClaimTypes.DateOfBirth)?.Value; }

Welcome, @User.Identity.Name

Welcome to a page restricted to users @Model or older

You can access this page since you were born on @dateOfBirth.