public HttpResponseMessage DeleteUSer(string username)
        {
            DnnUser dnnUser = new DnnUser(username);

            Dictionary <string, string> listParam = uow.SystemParamRepo.GetByGroupKey("AD");
            var       pass    = GlobalCommon.DecryptString(listParam[ADManager.AD_ADMIN_PASS] ?? "");
            ADManager manager = new ADManager(listParam[ADManager.AD_DOMAIN], listParam[ADManager.AD_ADMIN_USER], pass);

            if (manager.IsAuthenticated())
            {
                string message = manager.Delete(username);
                if (string.IsNullOrEmpty(message))
                {
                    bool result = dnnUser.DeleteUser(username);
                    if (result)
                    {
                        return(Request.CreateResponse(HttpStatusCode.OK, new { success = true }));
                    }
                    else
                    {
                        return(Request.CreateResponse(HttpStatusCode.BadRequest, new { message = "Error delete user DNN" }));
                    }
                }

                return(Request.CreateResponse(HttpStatusCode.BadRequest, new { message = message }));
            }

            return(Request.CreateResponse(HttpStatusCode.BadRequest, new { success = false }));
        }