Przykład Razor List Down List
[BindProperty]public int SelectedTag { get; set; };public SelectList TagOptions { get; set; }public void OnGet(){ TagOptions = new SelectList(_tagService.GetTags(), nameof(Tag.TagId), nameof(Tag.TagName)); SelectedTag = 5;}
Gleaming Goshawk