コード例 #1
0
        public async Task <IActionResult> GetGamesPerDay(
            DateTimeOffset from = default,
            DateTimeOffset to   = default)
        {
            from = from != default ? from : GetDefaultMinDateOffset();
            to   = to != default ? to : DateTimeOffset.MaxValue;
            var gameDays = await _w3StatsRepo.LoadGamesPerDayBetween(from, to);

            return(Ok(gameDays));
        }
コード例 #2
0
        public async Task <IActionResult> GetGamesPerDay(
            DateTimeOffset from = default,
            DateTimeOffset to   = default,
            GameMode gameMode   = GameMode.Undefined)
        {
            from = from != default ? from : DateTimeOffset.MinValue;
            to   = to != default ? to : DateTimeOffset.MaxValue;
            var gameDays = await _w3StatsRepo.LoadGamesPerDayBetween(from, to, gameMode);

            return(Ok(gameDays));
        }