Exemplo n.º 1
0
        public JsonResult Get(string id)
        {
            var service = new Rest.ContentService();

            return(Json(service.Get(new Guid(id), true), JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the content object with the given id
        /// </summary>
        /// <param name="id">The content id</param>
        /// <param name="draft">Whether or not to get the draft</param>
        private JsonResult Get(string id, bool draft)
        {
            var service = new Rest.ContentService();

            return(Json(service.Get(new Guid(id), draft), JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
		/// <summary>
		/// Gets the content object with the given id
		/// </summary>
		/// <param name="id">The content id</param>
		/// <param name="draft">Whether or not to get the draft</param>
		private JsonResult Get(string id, bool draft) {
			var service = new Rest.ContentService() ;

			return Json(service.Get(new Guid(id), draft), JsonRequestBehavior.AllowGet) ;
		}
Exemplo n.º 4
0
        public JsonResult Get(string id)
        {
            var service = new Rest.ContentService() ;

            return Json(service.Get(new Guid(id), true), JsonRequestBehavior.AllowGet) ;
        }