public IAllianceRatingOut SetAllianceRating(IDbConnection connection, AllianceDataModel allianceDataModel, bool setButtons, IGameUserService gameUserService)
        {
            var alliance = new AllianceRatingOut(allianceDataModel);

            alliance.Pilots = _aUserCache.LocalOperation(connection, col =>
            {
                return(col.Count(i => i.AllianceId == allianceDataModel.Id));
            });

            alliance.ControlledPlanet = _planetDetailCache.LocalOperation(connection, col =>
            {
                return(col.Count(i => i.AllianceId == allianceDataModel.Id));
            });
            alliance.LeaderImg = gameUserService.GetUserAvatar(connection, allianceDataModel.CreatorId);

            if (setButtons)
            {
                alliance.SetComplexButtonView();
            }
            return(alliance);
        }