public string UploadImage(byte[] data, string name, string filename, string contentType, NameValueCollection nvc) { //string result = CGClass.HttpPostFS("http://" + nodeserver + "/Upload",stream); string result = CGClass.HttpUploadFile("http://" + nodeserver + "/Content/Upload", data, name, filename, contentType, nvc); return(result); }
public IEnumerable <DIContentSeo> SelectContentDetailSeo(string idcontenteditordetail) { string result = CGClass.HttpGet("http://" + nodeserver + "/contentdetail/SelectSeoContentDetail?idContentEditorDetail=" + idcontenteditordetail); JavaScriptSerializer json_serializer = new JavaScriptSerializer(); contentseo = json_serializer.Deserialize <List <DIContentSeo> >(result); return(contentseo.ToList()); }
public IEnumerable <DIiconresource> SelectIcon() { string result = CGClass.HttpGet("http://" + nodeserver + "/contentdetail/SelectIconResource"); JavaScriptSerializer json_serializer = new JavaScriptSerializer(); contenticon = json_serializer.Deserialize <List <DIiconresource> >(result); return(contenticon.ToList()); }
public IEnumerable <DIContent> SelectContent(string idcontenteditor) { string result = CGClass.HttpGet("http://" + nodeserver + "/Content/SelectById?idContentEditor=" + idcontenteditor); JavaScriptSerializer json_serializer = new JavaScriptSerializer(); content = json_serializer.Deserialize <List <DIContent> >(result); return(content.ToList()); }
public IEnumerable <DIContent> ShowContent(string layout) { string result = CGClass.HttpGet("http://" + nodeserver + "/Content/selectContent?layout=" + layout); JavaScriptSerializer json_serializer = new JavaScriptSerializer(); content = json_serializer.Deserialize <List <DIContent> >(result); return(content.ToList()); }
public string Addcontentmore(string idcontenteditordetail) { string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/Addmoredetail", "idContentEditorDetail=" + idcontenteditordetail); return(result); }
public string SetUpdownContent(string idcontenteditordetail, string idcontenteditordetaildes) { string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateUpDown", "idContentEditorDetail=" + idcontenteditordetail + "&idContentEditorDetaildes=" + idcontenteditordetaildes); return(result); }
public string DeleteImg(string idcontenteditor) { string result = CGClass.HttpPost("http://" + nodeserver + "/Content/DeleteImg", "idContentEditor=" + idcontenteditor); return(result); }
public string UpdateImgSize(string imgpath, string idcontenteditordetail) { string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateSizeImg", "idContentEditorDetail=" + idcontenteditordetail + "&imgPath=" + imgpath); return(result); }
public string UploadImage(byte[] data, string name, string filename, string contentType, NameValueCollection nvc) { string result = CGClass.HttpUploadFile("http://" + nodeserver + "/contentdetail/UploadImg", data, name, filename, contentType, nvc); return(result); }
public string UpdateImgSize(string imgpath, string idcontenteditor) { string result = CGClass.HttpPost("http://" + nodeserver + "/Content/UpdateSize", "idContentEditor=" + idcontenteditor + "&imgPath=" + imgpath); return(result); }
public string UpdateImgPosition(string idcontenteditor, string position) { string result = CGClass.HttpPost("http://" + nodeserver + "/Content/Upposition", "idContentEditor=" + idcontenteditor + "&imgPosition=" + position); return(result); }
public string UpdateContent(string idcontenteditor, string textdata) { string result = CGClass.HttpPost("http://" + nodeserver + "/Content/UpdateContent", "idcon=" + idcontenteditor + "&text=" + textdata); return(result); }
public string Addcontentblock(string idcontenteditor) { string result = CGClass.HttpPost("http://" + nodeserver + "/Content/Addcontentblock", "idContentEditor=" + idcontenteditor); return(result); }
public string AddSeo(string title, string keyword, string description, string urlrewrite, string idcontenteditordetail) { string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/AddSEO", "Title=" + title + "&Keywords=" + keyword + "&Description=" + description + "&URLRewrite=" + urlrewrite + "&idContentEditorDetail=" + idcontenteditordetail); return(result); }
public string UpdateTrickbox(string idcontenteditor, string check) { string result = CGClass.HttpPost("http://" + nodeserver + "/Content/UpdateTrickbox", "id=" + idcontenteditor + "&thick=" + check); return(result); }
public string UpdateDatatext(string idcontenteditordetail, string textdata) { string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateDatatext", "idContentEditorDetail=" + idcontenteditordetail + "&textdata=" + textdata); return(result); }
public string UpdateLinkTypeValue(string idcontenteditordetail, string linktypepath) { string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateContentLinkValue", "idContentEditorDetail=" + idcontenteditordetail + "&ContentLinkTypeValue=" + linktypepath); return(result); }
public string UpdateImgPosition(string idcontenteditordetail, string position) { string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdatePosition", "idContentEditorDetail=" + idcontenteditordetail + "&imgPosition=" + position); return(result); }
public string DeleteBlock(string idcontenteditordetail) { string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/DeleteContentDetail", "idContentEditorDetail=" + idcontenteditordetail); return(result); }
public string UpdateTrickbox(string idcontenteditordetail, string check) { string result = CGClass.HttpPost("http://" + nodeserver + "/contentdetail/UpdateTrickbox", "idContentEditorDetail=" + idcontenteditordetail + "&imgThickBoxShow=" + check); return(result); }
public string SetUpdownContent(string idcontenteditor, string idcontenteditordes) { string result = CGClass.HttpPost("http://" + nodeserver + "/Content/SetUpdownContent", "idcontenteditor=" + idcontenteditor + "&idcontenteditordes=" + idcontenteditordes); return(result); }