public async Task <IEnumerable <SelectListItem> > GetCarMakeSelectList() { var makes = await _vehicleFactory.GetMakes(); return(makes.Select(x => new SelectListItem { Value = x.Make, Text = x.Make }).OrderBy(o => o.Text)); }
public async Task <IEnumerable <SelectListItem> > GetCarMakeSelectList() { var makes = await _vehicleFactory.GetMakes(); return(makes.Select(x => new SelectListItem { Value = x.Make, Text = x.Make }).OrderBy(o => o.Text)); }