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); } }
public bool CanBeParentGenre(GenreVM genre) { return(this.GenreDL.CanBeParentGenre(genre.GenreDL)); }
public GenreInEntertainmentVM(GenreVM genre, EntertainmentVM entertainment) { _genreInEntertainment = new GenreInEntertainment(entertainment.EntertainmentDL, genre.GenreDL); }