@model EventRegistrationCreateDto @{ ViewData["Title"] = "Register Student"; var students = ViewBag.Students as IEnumerable; var telId = ViewBag.TournamentEventLevelId as int?; var eventName = ViewBag.EventName as string; var levelName = ViewBag.LevelName as string; var isEligible = ViewBag.IsEligible as bool?; var eligibilityReason = ViewBag.EligibilityReason as string; var selectedStudentId = Model?.StudentId; }

Register Student

@if (!string.IsNullOrEmpty(eventName)) {

@eventName - @levelName

}
@* Re-request the page with the chosen student so eligibility is checked before submitting. *@