Exemplo n.º 1
0
 public void Populate(CL_BookmarkedAnime contract)
 {
     BookmarkedAnimeID = contract.BookmarkedAnimeID;
     AnimeID           = contract.AnimeID;
     Priority          = contract.Priority;
     Notes             = contract.Notes;
     Downloading       = contract.Downloading;
     Anime             = (VM_AniDB_Anime)contract.Anime;
 }
Exemplo n.º 2
0
        public static CL_BookmarkedAnime ToClient(this BookmarkedAnime bookmarkedanime)
        {
            CL_BookmarkedAnime cl = new CL_BookmarkedAnime
            {
                BookmarkedAnimeID = bookmarkedanime.BookmarkedAnimeID,
                AnimeID           = bookmarkedanime.AnimeID,
                Priority          = bookmarkedanime.Priority,
                Notes             = bookmarkedanime.Notes,
                Downloading       = bookmarkedanime.Downloading
            };

            cl.Anime = null;
            SVR_AniDB_Anime an = RepoFactory.AniDB_Anime.GetByAnimeID(bookmarkedanime.AnimeID);

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

            return(cl);
        }