Beispiel #1
0
        public ListCatalogBrand()
        {
            var dao = new CatalogDao();

            listBrand = new List <SelectListItem>();
            foreach (CatalogBrand cb in dao.getAllBrand())
            {
                listBrand.Add(new SelectListItem
                {
                    Value = cb.id.ToString(),
                    Text  = cb.brand
                });
            }
        }