예제 #1
0
        private static bool BlackListUser(UserExtended u, VkApi api)
        {
            api.Account.SetOffline();
            var result = _userService.BanUser(u, api);

            if (result)
            {
                _cacheService.Append(u.Id, CacheKeys.BannedUserIds.ToString());
            }

            return(result);
        }