public void SetViewBag(int?selectedID = null) { var dao = new ProductCategoryDAO(); ViewBag.ListCategory = new SelectList(dao.GetListProductCategory(), "id", "name", selectedID); }
public void SetViewBag(int?selectedID = null) { var dao = new ProductCategoryDAO(); ViewBag.ListCategory = new SelectList(dao.GetListProductCategory(), "id", "name", selectedID); }