Inheritance: IEntity, ICreatable, IModifiable
        public void CreateNewSubscriptionForUserAndChannel(long userId, long channelId)
        {
            var channelTitle = this.database.RssChannels
                .Where(channel => channel.Id == channelId)
                .Select(channel => channel.Title)
                .Single();

            var rssChannelSubscription = new RssChannelSubscription(channelId, userId, channelTitle);
            this.database.RssChannelsSubscriptions.Add(rssChannelSubscription);
            this.database.SaveChanges();
        }
 public void Subscribe(long idByChannelUrl, long currentUserId, string channelIdRssChannelName)
 {
     var rssChannelSubscription = new RssChannelSubscription(idByChannelUrl, currentUserId, channelIdRssChannelName);
     this.database.RssChannelsSubscriptions.Add(rssChannelSubscription);
     this.database.SaveChanges();
 }
 public void Subscribe(long idByChannelUrl, long currentUserId)
 {
     var title = this.database.RssChannels.Single(x => x.Id == idByChannelUrl).Title;
     var rssChannelSubscription = new RssChannelSubscription(idByChannelUrl, currentUserId, title);
     this.database.RssChannelsSubscriptions.Add(rssChannelSubscription);
     this.database.SaveChanges();
 }