Quick and Dirty Tournament Result / List

This commit is contained in:
2019-05-30 00:42:12 +02:00
parent 9b148fa571
commit 102a6af8e0
14 changed files with 407 additions and 37 deletions

View File

@@ -10,7 +10,6 @@ using ChallongeCSharpDriver.Core.Results;
using LaDOSE.Business.Helper;
using LaDOSE.Business.Interface;
using LaDOSE.Entity;
using LaDOSE.Entity.Challonge;
using LaDOSE.Entity.Context;
using LaDOSE.Entity.Wordpress;
using Microsoft.EntityFrameworkCore;
@@ -165,19 +164,9 @@ namespace LaDOSE.Business.Service
var lastTournament = await _challongeProvider.GetLastTournament();
return lastTournament;
}
public async Task<List<Tournament>> GetTournaments(DateTime? start, DateTime? end)
{
var tournaments = await _challongeProvider.GetTournaments(start,end);
foreach (var tournament in tournaments)
{
List<Participent> participents = await _challongeProvider.GetParticipents(tournament.Id);
tournament.Participents = participents;
}
return tournaments;
}
private string FormatCurrentEventName(string currentEventName)
{