public void DeleteRecord(int id)
        {
            try
            {
                SystemUserWrapper.DeleteByID(id);

                ResourceManager.AjaxSuccess = true;
            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess      = false;
                ResourceManager.AjaxErrorMessage = string.Format(ex.Message);
                return;
            }
        }
        public void DeleteRecord(int id)
        {
            try
            {
                SPClientWrapper clientWrapper = SPClientWrapper.FindById(id);

                if (clientWrapper.UserID > 0)
                {
                    SystemUserWrapper.DeleteByID(clientWrapper.UserID);
                }

                SPClientWrapper.DeleteByID(id);

                ScriptManager.AjaxSuccess = true;
            }
            catch (Exception ex)
            {
                ScriptManager.AjaxSuccess      = false;
                ScriptManager.AjaxErrorMessage = string.Format(ex.Message);
                return;
            }
        }