Exemplo n.º 1
0
        public IActionResult CreateRange([FromBody] ICollection <Sport> sports)
        {
            if (sports == null)
            {
                return(BadRequest());
            }

            _sportRepository.AddRange(sports);
            return(new NoContentResult());
        }