示例#1
0
        public async Task <IActionResult> GenerateSchedule(int leagueId)
        {
            var result = await _leagueService.GenerateMatchSchedule(leagueId);

            if (result.ErrorOccurred)
            {
                return(BadRequest(result));
            }

            return(Ok(result));
        }