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

@@ -1,4 +1,6 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AutoMapper;
using LaDOSE.Business.Interface;
using LaDOSE.DTO;
@@ -89,5 +91,13 @@ namespace LaDOSE.Api.Controllers
{
return _service.CreateChallonge(gameId, wpEventId, additionalPlayer);
}
[HttpGet("GetTournaments")]
public async Task<List<Tuple<int, string, string>>> GetChallonge()
{
var game = await _service.GetTournaments(DateTime.Now.AddMonths(-2), null);
return game;
}
}
}