Ejemplo n.º 1
0
        private void Save()
        {
            string json = string.Empty;
            try
            {
                json = HttpContext.Current.Request["json"].ToString();
            }
            catch { }
            if (string.IsNullOrEmpty(json))
            {
                HttpContext.Current.Response.Write(JsonMessage.FailString("参数丢失!"));
                return;
            }

            Sys_Role table = JsonHelper.DeserializeData<Sys_Role>(json);
            RoleFactory bll = new RoleFactory();
            HttpContext.Current.Response.Write(bll.Save(table));
        }