예제 #1
0
 public GenreVM(GenreVM parentGenre, string name, Entertainment.Type genreType, string summary)
 {
     if (parentGenre != null)
     {
         _genre = new Genre(parentGenre.GenreDL, name, genreType, summary);
     }
     else
     {
         _genre = new Genre(null, name, genreType, summary);
     }
 }
예제 #2
0
 public bool CanBeParentGenre(GenreVM genre)
 {
     return(this.GenreDL.CanBeParentGenre(genre.GenreDL));
 }
예제 #3
0
 public GenreInEntertainmentVM(GenreVM genre, EntertainmentVM entertainment)
 {
     _genreInEntertainment = new GenreInEntertainment(entertainment.EntertainmentDL, genre.GenreDL);
 }