以下代码仅接受模型中包含的颜色。如何允许用户输入未在模型中列出的那个?
<div class="form-group input-group-sm">
@Html.LabelFor(m => m.CarColor, new { @class = "control-label col-md-5" })
<div class="col-md-7">
@Html.DropDownListFor(m => m.CarColor, ViewBag.CarColorList as SelectList })
</div>
</div>