Example #1
0
        private bool ValidateReleased(SongDto song)
        {
            AlbumDto album     = dalAlb.FindById(song.AlbumId).Data;
            int      albumYear = album.Released;
            int      songYear  = song.Released;

            return(songYear <= albumYear);
        }
Example #2
0
 public Response <AlbumDto> ShowById(int id)
 {
     return(dal.FindById(id));
 }