public static List <SelectListItem> SetAvailableMakes() { List <SelectListItem> list = new List <SelectListItem>(); VehicleManager mgr = new VehicleManager(); var makes = mgr.GetAllMakes(); foreach (var m in makes.Package) { list.Add(new SelectListItem() { Text = m.ManufacturerName, Value = m.ManufacturerId.ToString() }); } return(list); }
public static Courier <List <Manufacturer> > GetAllMakes() { VehicleManager mgr = new VehicleManager(); return(mgr.GetAllMakes()); }