/// <summary> /// Displays the gallery index view. /// </summary> /// <returns>The gallery index view.</returns> public ActionResult Index() { ViewBag.Gallery = new List <PhotoAlbum>(); PhotoAlbumCollection albumCollection = KkisData.GetAlbumList(ConfigurationManager.AppSettings["KKISGoogleUser"]); return(this.View(albumCollection)); }
/// <summary> /// Retrieves navigation data for the gallery. /// </summary> /// <returns>The gallery navigation data in JSON format.</returns> public JsonResult Navigation() { PhotoAlbumCollection albumCollection = KkisData.GetAlbumList(ConfigurationManager.AppSettings["KKISGoogleUser"]); return(this.Json(albumCollection)); }