/// <summary>
 /// Adds history entry with specific key.
 /// </summary>
 /// <param name="key">Key to add to history entry.</param>
 protected override void Add(string key)
 {
     using (var model = new NCrawlerModel())
     {
         var historyEntry = new CrawlHistory();
         historyEntry.Key     = key;
         historyEntry.GroupId = this.groupId;
         model.CrawlHistories.Add(historyEntry);
         model.SaveChanges();
     }
 }
 /// <summary>
 /// Adds history entry with specific key.
 /// </summary>
 /// <param name="key">Key to add to history entry.</param>
 protected override void Add(string key)
 {
     using (var model = new NCrawlerModel())
     {
         var historyEntry = new CrawlHistory();
         historyEntry.Key = key;
         historyEntry.GroupId = this.groupId;
         model.CrawlHistories.Add(historyEntry);
         model.SaveChanges();
     }
 }