Example #1
0
        public void Del(HttpContext context)
        {
            String jSonString = "";
            try
            {

                int IDSystemUsers = Convert.ToInt32(context.Request.QueryString["IDSystemUsers"]);

                SystemUsersBO aSystemUsersBO = new SystemUsersBO();
                int ret = aSystemUsersBO.Del_ByID(IDSystemUsers);

                    if (ret == 0)
                    { jSonString = "{\"status\": \"success\"}"; }
                    if (ret != 0)
                    { jSonString = "{\"status\":\"error|" + ret.ToString() + "\"}"; }
            }
            catch (Exception ex)
            {
                jSonString = "{\"status\":\"error\" ,\"message\":\"" + ex.Message.ToString() + "\"}";
            }
            finally
            {
                context.Response.Write(jSonString);
            }
        }