@page "/dashboard/{Role}" Dashboard My Profile @switch (Role) { case "doctor": break; case "patient": break; default:

Unknown role. Please contact support.

break; } @code { [Parameter] public string Role { get; set; } }