// GET: SanPhams/Create public IActionResult Create() { ViewData["Maloai"] = new SelectList(_context.Set <LoaiSanPham>(), "ID", "ID"); return(View()); }