div class="col-lg-6"> <div class="form-group"> <label asp-for="@Model.Test">Home Study Course Test Name <span class="text-danger">*</span></label> <select class="form-control align-baseline" asp-for="@Model.Test" id="Test" style="height: calc(2.25rem + 2px);"> @if (String.IsNullOrEmpty(Model.Test)) { <option selected disabled>Select a test</option> } @if (Model != null && Model.UserTests != null) { @foreach (var test in Model.UserTests) { <option value="@test.Name">@test.Name</option> } } </select> <span asp-validation-for="@