Added search options for tournament result + small test

This commit is contained in:
2019-05-28 00:20:02 +02:00
parent 80893e55de
commit 1f5961cdd0
7 changed files with 41 additions and 5 deletions

View File

@@ -45,6 +45,21 @@ namespace LaDOSE.Business.Provider
}
public async Task<List<TournamentResult>> GetTournaments(DateTime? start, DateTime? end)
{
List<TournamentResult> tournamentResultList = await new TournamentsQuery()
{
state = TournamentState.Ended,
createdAfter = start,
createdBefore = DateTime.Now,
}
.call(this.ApiCaller);
return tournamentResultList;
}
public async Task<string> GetLastTournament()
{
string dernierTournois = null;