public void DropdownCategory(int?CategoryID = null) { var dao = new ProductCategoryDAO(); ViewBag.CategoryList = new SelectList(dao.GetCategoriesSelectList(), "ID", "Name", CategoryID); }
public void DropdownCategory(int?CategoryID = null) { var dao = new ProductCategoryDAO(); ViewBag.CategoryList = new SelectList(dao.GetCategoriesSelectList(), "ID", "Name", CategoryID); }