Exemplo n.º 1
0
        /// <summary>
        /// 获取账号与客户关系
        /// </summary>
        /// <returns></returns>
        private List <SysApiClienToAccountData> GetAllAccount()
        {
            //获取客户与资源关系
            var apiAccountList = _sysApiClienToAccountRepository.GetApiClientAndAccount().ToList();
            //
            List <ApiResource> resourceList = new List <ApiResource>();

            //
            if (apiAccountList == null && !apiAccountList.Any())
            {
                return(new List <SysApiClienToAccountData>());
            }
            //
            apiAccountList = apiAccountList.Where(w => w.IsActiveAccount.Value && w.IsActiveClient.Value).ToList();
            //
            return(apiAccountList);
        }