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

            return(Json(round.Id));
        }