Add WPFUi to prevent stuck state

Add Range to TournamentService
Use DataTable to export CSV
DataTable can be ordered on Total
This commit is contained in:
2019-05-31 23:34:34 +02:00
parent 3d73071925
commit 21713fed69
7 changed files with 227 additions and 114 deletions

View File

@@ -252,12 +252,11 @@ namespace LaDOSE.REST
#region Tournaments
public List<TournamentDTO> GetTournaments()
public List<TournamentDTO> GetTournaments(TimeRangeDTO timeRange)
{
CheckToken();
var restRequest = new RestRequest("/api/Tournament/GetTournaments", Method.GET);
var restResponse = Client.Get<List<TournamentDTO>>(restRequest);
return restResponse.Data;
List<TournamentDTO> tournamentDtos = Post<TimeRangeDTO, List<TournamentDTO>>("/api/Tournament/GetTournaments",timeRange);
return tournamentDtos;
}
public TournamentsResultDTO GetResults(List<int> ids)