public ActionResult AlbumSongsOverTime() { var data = songAggregateQueries.SongsOverTime(TimeUnit.Month, false, null, a => a.AllAlbums.Any(), a => a.AllAlbums.Count == 0); return(AreaChart("Album songs over time", new Series("Album songs", Series.DateData(data[0])), new Series("Independent songs", Series.DateData(data[1])) )); }
public CountPerDayContract[] GetSongsOverTime(TimeUnit timeUnit, int artistId) { return(songAggregateQueries.SongsOverTime(timeUnit, true, null, s => s.PublishDate.DateTime <= DateTime.Now && s.AllArtists.Any(a => a.Artist.Id == artistId))[0]); }
public CountPerDayContract[] GetSongsOverTime(TimeUnit timeUnit, int artistId = 0, int tagId = 0) { return(songAggregateQueries.SongsOverTime(timeUnit, true, null, artistId, tagId)); }