public JsonResult Get(string id) { var service = new Rest.ContentService(); return(Json(service.Get(new Guid(id), true), JsonRequestBehavior.AllowGet)); }
/// <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)); }
/// <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) ; }
public JsonResult Get(string id) { var service = new Rest.ContentService() ; return Json(service.Get(new Guid(id), true), JsonRequestBehavior.AllowGet) ; }