Beispiel #1
0
 public static void SeedFeedSources(IRepository repository, IFeedService feedService)
 {
     if (repository.GetAll <FeedSource>().Result.Count == 0)
     {
         foreach (var url in feedSources)
         {
             feedService.AddSource(url).Wait();
         }
     }
 }
Beispiel #2
0
 public async Task <IActionResult> AddChannel([FromBody] string url)
 {
     return(Ok(await feedService.AddSource(url)));
 }