예제 #1
0
        public async Task <bool> BanChannel(Models.BannedEntity channel)
        {
            string vidID   = Helpers.YouTubeHelpers.ExtractVideoId(channel.ChannelURL);
            var    vidInfo = await ytDAL.GetChannelIDAndName(vidID);

            return(await bbDAL.BanChannel(channel, vidInfo.Key, vidInfo.Value, VideoProvider.YouTube)); //TODO support more vid providers
        }