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)); }
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)); }