Exemplo n.º 1
0
        public Contract_BookmarkedAnime ToContract()
        {
            Contract_BookmarkedAnime contract = new Contract_BookmarkedAnime();

            contract.BookmarkedAnimeID = BookmarkedAnimeID;
            contract.AnimeID           = AnimeID;
            contract.Priority          = Priority;
            contract.Notes             = Notes;
            contract.Downloading       = Downloading;

            contract.Anime = null;
            AniDB_Anime an = RepoFactory.AniDB_Anime.GetByAnimeID(AnimeID);

            if (an != null)
            {
                contract.Anime = an.Contract.AniDBAnime;
            }

            return(contract);
        }
Exemplo n.º 2
0
        public Contract_BookmarkedAnime ToContract()
        {
            Contract_BookmarkedAnime contract = new Contract_BookmarkedAnime();

            contract.BookmarkedAnimeID = BookmarkedAnimeID;
            contract.AnimeID           = AnimeID;
            contract.Priority          = Priority;
            contract.Notes             = Notes;
            contract.Downloading       = Downloading;

            contract.Anime = null;
            AniDB_AnimeRepository repAnime = new AniDB_AnimeRepository();
            AniDB_Anime           an       = repAnime.GetByAnimeID(AnimeID);

            if (an != null)
            {
                contract.Anime = an.ToContract(true, null);
            }

            return(contract);
        }