Example #1
0
        /// <summary>
        /// 17、	删除模板
        /// </summary>
        /// <param name="id">要删除的模板id</param>
        /// <returns></returns>
        /// Jack Ding
        public TplDropResponse TplDrop(int id, string token)
        {
            string          strResponse = string.Empty;
            TplDropResponse response    = new TplDropResponse();

            try
            {
                Dictionary <string, string> sPara = new Dictionary <string, string>();

                sPara.Add("id", id.ToString());

                strResponse = F8YLSubmit.BuildRequest(sPara, "tpl/drop?token=" + token);

                response = JsonHelper.DeserializeJsonToObject <TplDropResponse>(strResponse);

                return(response);
            }
            catch
            {
                throw;
            }
        }
        /// <summary>
        /// 17、	删除模板
        /// </summary>
        /// <param name="id">要删除的模板id</param>
        /// <returns></returns>
        /// Jack Ding
        public TplDropResponse TplDrop(int id, string token)
        {
            string strResponse = string.Empty;
            TplDropResponse response = new TplDropResponse();

            try
            {
                Dictionary<string, string> sPara = new Dictionary<string, string>();

                sPara.Add("id", id.ToString());

                strResponse = F8YLSubmit.BuildRequest(sPara, "tpl/drop?token=" + token);

                response = JsonHelper.DeserializeJsonToObject<TplDropResponse>(strResponse);

                return response;
            }
            catch
            {
                throw;
            }
        }