Add vehicle recall

This commit is contained in:
2020-09-20 22:07:13 -04:00
parent b5589103ec
commit 6f031c5cb6
34 changed files with 890 additions and 45 deletions
@@ -1,5 +1,7 @@
@model MileageTraker.Web.ViewModels.SelectListViewModel
@{
Layout = "~/Views/Shared/EditorTemplates/_FieldLayout.cshtml";
var values = ViewData.ModelMetadata.AdditionalValues;
var optionLabel = values.ContainsKey("OptionLabel") ? (string)values["OptionLabel"] : string.Empty;
}
@Html.DropDownListFor(m => m.Selected, Model.Available, string.Empty)
@Html.DropDownListFor(m => m.Selected, Model.Available, optionLabel)