public IActionResult GetByKey(string key)
        {
            _logger.Log($"key:{key}");
            var item = TeamRepo.FindByKey(key);

            if (item == null)
            {
                _logger.Log($"GetById: could not find Team {key}");
                return(HttpNotFound());
            }
            return(new ObjectResult(item));
        }
        public IActionResult Put(string key, [FromBody] Team updateTeam)
        {
            _logger.Log($"key:{updateTeam.Key}");

            if (updateTeam == null || updateTeam.Key.ToString() != key)
            {
                return(HttpBadRequest());
            }

            var release = TeamRepo.FindByKey(key);

            if (release == null)
            {
                return(HttpNotFound());
            }

            TeamRepo.Update(updateTeam);
            return(new NoContentResult());
        }