Ejemplo n.º 1
0
        //[WebInvoke(Method = "PUT", UriTemplate = "/Layout/")]
        public ZoneEditorWebServiceArgs UpdateLayoutState(ZoneEditorWebServiceArgs state)
        {
            var request = new RestRequest(this.GetServiceUrl("/Layout/"), Method.PUT);

            request.AddParameter("application/json", SerializeObject(state), ParameterType.RequestBody);

            return(ExecuteRequest <ZoneEditorWebServiceArgs>(request));
        }
Ejemplo n.º 2
0
        //[WebInvoke(Method = "PUT", UriTemplate = "rollback/")]
        public ZoneEditorWebServiceArgs Rollback(ZoneEditorWebServiceArgs state)
        {
            var request = new RestRequest(this.ServiceUrl + "rollback/", Method.PUT);

            request.AddParameter("application/json", SerializeObject(state), ParameterType.RequestBody);

            return(ExecuteRequest <ZoneEditorWebServiceArgs>(request));
        }
Ejemplo n.º 3
0
        //[WebInvoke(Method = "PUT", UriTemplate = "setoverride/{editable}/")]
        public ZoneEditorWebServiceArgs SetOverride(ZoneEditorWebServiceArgs state, string editable)
        {
            var request = new RestRequest(this.GetServiceUrl("setoverride/{editable}/"), Method.PUT);

            request.AddUrlSegment("editable", editable);

            request.AddParameter("application/json", SerializeObject(state), ParameterType.RequestBody);

            return(ExecuteRequest <ZoneEditorWebServiceArgs>(request));
        }
Ejemplo n.º 4
0
        //[WebInvoke(Method = "PUT", UriTemplate = "/Layout/Style/{LayoutControlId}/{PageId}/{isTemplate}/")]
        public ZoneEditorWebServiceArgs UpdateLayoutControlStyles(ZoneEditorWebServiceArgs args, Guid layoutControlId, Guid pageId, string isTemplate)
        {
            var request = new RestRequest(this.GetServiceUrl("/Layout/Style/{LayoutControlId}/{PageId}/{isTemplate}/"), Method.PUT);

            request.AddUrlSegment("LayoutControlId", layoutControlId.ToString());
            request.AddUrlSegment("PageId", pageId.ToString());
            request.AddUrlSegment("isTemplate", isTemplate);

            request.AddParameter("application/json", SerializeObject(args), ParameterType.RequestBody);

            return(ExecuteRequest <ZoneEditorWebServiceArgs>(request));
        }