예제 #1
0
        public void Upd_Type_ByCode(HttpContext context)
        {
            int ret = -1;
            String jSonString = "";
            try
            {
                CategoryLevel1BO aCategoryLevel1BO = new CategoryLevel1BO();
                List<CategoryLevel1> listCategoryLevel1 = new List<CategoryLevel1>();
                string Code = context.Request.QueryString["Code"];
                int Type = Convert.ToInt32(context.Request.QueryString["Type"]);

                ret = aCategoryLevel1BO.Upd_Type_ByCode(Type, Code);
            }
            catch (Exception ex)
            {
                jSonString = "{\"status\":\"error\" ,\"message\":\"" + ex.Message.ToString() + "\"}";
            }
            finally
            {
                context.Response.Write(jSonString);
            }
        }