public static bool Comparison(SongVM song1, SongVM song2) { Logger.Info("SongVM.Comparison", "Порівняння двох екземплярів GenreInEntertainmentVM."); if (song1 == null || song2 == null) { return(false); } return(Entity <Song> .Comparison(song1.SongDL, song2.SongDL)); }
public bool SongComparison(SongVM song) { Logger.Info("SongInEntertainmentVM.GenreComparison", "Порівняння даного екзмпляра жанру з жанром у SongInEntertainmentVM."); return(song.SongDL.Id == this.SongId); }
public SongInEntertainmentVM(SongVM song, EntertainmentVM entertainment) { _songInEntertainment = new SongInEntertainment(song.SongDL, entertainment.EntertainmentDL); Logger.Info("SongInEntertainmentVM.SongInEntertainmentVM", "Екземпляр SongInEntertainmentVM створений."); }