// GET: Admin/LoaiMatHang public ActionResult Index() { var dao = new LoaiMatHangDao(); var model = dao.ListAll(); return(View(model)); }
public void SetLoaiMH(string selectedId = null) { var dao = new LoaiMatHangDao(); ViewBag.LoaiMH = new SelectList(dao.ListAll(), "ID", "Ten", selectedId); }