Beispiel #1
0
        public static void RemoveLinkAniDBMovieDB(int animeID)
        {
            CrossRef_AniDB_OtherRepository repCrossRef = new CrossRef_AniDB_OtherRepository();
            CrossRef_AniDB_Other           xref        = repCrossRef.GetByAnimeIDAndType(animeID, CrossRefType.MovieDB);

            if (xref == null)
            {
                return;
            }

            repCrossRef.Delete(xref.CrossRef_AniDB_OtherID);

            CommandRequest_WebCacheDeleteXRefAniDBOther req = new CommandRequest_WebCacheDeleteXRefAniDBOther(animeID,
                                                                                                              CrossRefType.MovieDB);

            req.Save();
        }
        public static void RemoveLinkAniDBMovieDB(int animeID)
        {
            CrossRef_AniDB_Other xref =
                RepoFactory.CrossRef_AniDB_Other.GetByAnimeIDAndType(animeID, CrossRefType.MovieDB);

            if (xref == null)
            {
                return;
            }

            RepoFactory.CrossRef_AniDB_Other.Delete(xref.CrossRef_AniDB_OtherID);

            if (ServerSettings.Instance.WebCache.Enabled)
            {
                CommandRequest_WebCacheDeleteXRefAniDBOther req = new CommandRequest_WebCacheDeleteXRefAniDBOther(
                    animeID,
                    CrossRefType.MovieDB);
                req.Save();
            }
        }