Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public static Courier <List <Manufacturer> > GetAllMakes()
        {
            VehicleManager mgr = new VehicleManager();

            return(mgr.GetAllMakes());
        }