public async Task<IActionResult> Create(CreateRoundRequest request)
		{
			await _service.Create(request);
			return Ok();
		}
 public ActionResult <Round> Post([FromBody] Round round)
 {
     return(_roundService.Create(round));
 }
Beispiel #3
0
        public async Task <IActionResult> Post([FromBody] AddRoundViewModel model)
        {
            var round = await _roundService.Create(model.RoundName, model.TournamentId);

            return(Json(round.Id));
        }