Esempio n. 1
0
        public static void CreateMangaHistory(IManga manga)
        {
            var history = new MangaReader.Core.Manga.MangaHistory(Url);

            manga.Histories.Add(new MangaReader.Core.Manga.MangaHistory(history.Uri));
            manga.Save();
        }
Esempio n. 2
0
 public static async Task CreateMangaHistory(IManga manga)
 {
     using (var context = Repository.GetEntityContext())
     {
         var history = new MangaReader.Core.Manga.MangaHistory(Url);
         manga.Histories.Add(new MangaReader.Core.Manga.MangaHistory(history.Uri));
         await context.Save(manga).ConfigureAwait(false);
     }
 }