コード例 #1
0
ファイル: StatsController.cs プロジェクト: kateabr/vocadb
        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]))
                             ));
        }
コード例 #2
0
ファイル: SongApiController.cs プロジェクト: rijuntun/vocadb
 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]);
 }
コード例 #3
0
 public CountPerDayContract[] GetSongsOverTime(TimeUnit timeUnit, int artistId = 0, int tagId = 0)
 {
     return(songAggregateQueries.SongsOverTime(timeUnit, true, null, artistId, tagId));
 }