Example #1
0
 public List<CrossRef_AniDB_TvDB_Episode> GetCrossRefTvDBEpisodes(ISession session)
 {
     CrossRef_AniDB_TvDB_EpisodeRepository repCrossRef = new CrossRef_AniDB_TvDB_EpisodeRepository();
     return repCrossRef.GetByAnimeID(session, AnimeID);
 }
Example #2
0
        public List<Contract_CrossRef_AniDB_TvDB_Episode> GetTVDBCrossRefEpisode(int animeID)
        {
            try
            {
                List<Contract_CrossRef_AniDB_TvDB_Episode> contracts = new List<Contract_CrossRef_AniDB_TvDB_Episode>();

                CrossRef_AniDB_TvDB_EpisodeRepository repCrossRef = new CrossRef_AniDB_TvDB_EpisodeRepository();
                List<CrossRef_AniDB_TvDB_Episode> xrefs = repCrossRef.GetByAnimeID(animeID);

                foreach (CrossRef_AniDB_TvDB_Episode xref in xrefs)
                    contracts.Add(xref.ToContract());

                return contracts;
            }
            catch (Exception ex)
            {
                logger.ErrorException(ex.ToString(), ex);
                return null;
            }
        }
Example #3
0
 private void PopulateCrossRefsEpisodes()
 {
     try
     {
         CrossRef_AniDB_TvDB_EpisodeRepository repCrossRef = new CrossRef_AniDB_TvDB_EpisodeRepository();
         crossRefTvDBEpisodes = repCrossRef.GetByAnimeID(AnimeID);
     }
     catch (Exception ex)
     {
         logger.ErrorException(ex.ToString(), ex);
     }
 }