public ActionResult Insert(int id = 0) { testCLS testModel = new testCLS(); using (andinoshopEntities db = new andinoshopEntities()) { testModel.RolCollection = db.type_user.ToList <type_user>(); } return(View(testModel)); }
public ActionResult Insert(int id = 0) { productCLS productModel = new productCLS(); using (andinoshopEntities db = new andinoshopEntities()) { productModel.CategoryCollection = db.category.ToList <category>(); productModel.BrandCollection = db.brand.ToList <brand>(); } return(View(productModel)); }