Player now resolve in UI

This commit is contained in:
2019-03-12 21:41:30 +01:00
parent 8f78abef75
commit 3b16c5feaf
23 changed files with 850 additions and 174 deletions

View File

@@ -64,9 +64,15 @@ namespace LaDOSE.Api.Controllers
}
[HttpGet("CreateChallonge/{gameId:int}/{wpEventId:int}")]
public bool CreateChallonge(int gameId, int wpEventId)
public string CreateChallonge(int gameId, int wpEventId)
{
return _service.CreateChallonge(gameId, wpEventId);
return _service.CreateChallonge(gameId, wpEventId,null);
}
[HttpPost("CreateChallonge/{gameId:int}/{wpEventId:int}")]
public string CreateChallonge(int gameId, int wpEventId, [FromBody]List<WPUser> additionalPlayer)
{
return _service.CreateChallonge(gameId, wpEventId, additionalPlayer);
}
}
}