示例#1
0
        public ActionResult AddNewImage()
        {
            productImage ProductImage = new productImage();
            var          ID           = db.GetNewProductID().ToList();


            if (db.GetMainImage().ToList <productImage>().Find(x => x.pID == ID[0]) != null)
            {
                ProductImage = db.GetMainImage().ToList <productImage>().Find(x => x.pID == ID[0]);
            }

            ViewBag.id = ID[0];

            return(View(ProductImage));
        }