// GET: Admin/MauSac public ActionResult Index() { var dao = new MauSacDao(); var model = dao.ListAll(); return(View(model)); }
public void SetMauSac(int?selectedId = null) { var dao = new MauSacDao(); ViewBag.MauID = new SelectList(dao.ListAll(), "ID", "Ten", selectedId); }