コード例 #1
0
        public async Task <IActionResult> InsertMatches([FromBody] List <MatchDto> matches)
        {
            if (matches.Any())
            {
                var result = await _matchService.AddOrUpdateMatches(matches);

                return(result != null ? (IActionResult)Ok(result) : BadRequest());
            }
            throw new Exception(ProjectConstants.InvalidJSON);
        }