示例#1
0
        // GET: Sections
        public ActionResult Index(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            theme_areas theme_areas = db.theme_areas.Find(id);

            if (theme_areas == null)
            {
                return(HttpNotFound());
            }

            List <String> imageList = new List <String>();

            imageList          = theme_areas.getImagePaths();
            ViewBag.firstImage = imageList.ElementAt(0);
            imageList.RemoveAt(0);
            ViewBag.ImageList = imageList;


            return(View(theme_areas));
        }