Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }