// GET api/values/5
        public APIJsonResult GetModuleList()
        {
            var loginUser = LoginManager.GetLoginUser();

            if (loginUser == null)
            {
                return(Failed("No module found."));
            }
            var permissions = new TRoleBLL().GetPermissions(loginUser.RoleID);

            var moduleBLL = new TModuleBLL();
            var modules   = moduleBLL.GetUserModules(permissions);

            var moduleModels = UtilHelper.ConvertObjList <TModule, ModuleModel>(modules);

            UtilHelper.ConvertChildObjList <TModule, ModuleModel, TModule, ModuleModel>(modules, moduleModels, "TModule1", "ChildModules");

            return(Success("", new
            {
                Modules = moduleModels
            }));
        }