Exemplo n.º 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");
        }
Exemplo n.º 2
0
 public ActionResult ViewAllGallery()
 {
     var reader =  new GalleryDataHelper.XmlReader();
     var data = reader.GalleryList();
     return View(data.ToList());
 }