public async Task <ActionResult <ApiResult <Match> > > CreateMatch([FromBody] Match match, [FromServices] IUtilService util) { match.Code = await util.GetNextMatchCodeAsync(); var result = await Service.CreateMatchAsync(match); return(new ApiResult <Match> { Result = result }); }