예제 #1
0
        public ActionResult Aboutus()
        {
            var reader = new GalleryDataHelper.XmlReader();
            var data = reader.AboutInfo();
            ViewData["title"] = data.Title;
            ViewData["body"] = data.Body;
            ViewData["img"] = data.ImgName;

            return View("_aboutus");
        }
예제 #2
0
 public ActionResult ViewAllGallery()
 {
     var reader =  new GalleryDataHelper.XmlReader();
     var data = reader.GalleryList();
     return View(data.ToList());
 }