public ActionResult EditSubCategory(string ma) { dao = new CategoryDao(); SubCategory subCate = dao.FindSubCategory(ma); model = new ShopLapModel(); SelectList selectList = new SelectList(model.Categories.ToList().OrderBy(x => x.ma), "ma", "tendanhmuc"); ViewBag.Danhmuc = selectList; return(View(subCate)); }