コード例 #1
0
        /// <summary>
        /// Gets the popup list.
        /// </summary>
        public ActionResult Popup(string id = "")
        {
            var published = false;

            if (!String.IsNullOrEmpty(Request["tinymce"]))
            {
                published = Request["tinymce"] == "true";
            }
            string filter = Request["filter"];

            return(View("Popup", PopupModel.Get(id, published, filter)));
        }
コード例 #2
0
ファイル: ContentController.cs プロジェクト: zaieda/Piranha
        /// <summary>
        /// Gets the popup list.
        /// </summary>
        public ActionResult Popup(string id = "")
        {
            var published = false;

            if (!String.IsNullOrEmpty(Request["tinymce"]))
            {
                published = Request["tinymce"] == "true";
            }
            string filter = Request["filter"];

            // Disable caching for the popup
            Response.Cache.SetCacheability(HttpCacheability.NoCache);

            // Return view
            return(View("Popup", PopupModel.Get(id, published, filter)));
        }
コード例 #3
0
 /// <summary>
 /// Gets the popup list.
 /// </summary>
 public ActionResult Popup(string id = "")
 {
     return(View("Popup", PopupModel.Get(id)));
 }