Beispiel #1
0
        public IActionResult Get(Guid id)
        {
            try
            {
                var _jogador = _repository.BuscarJogadorId(id);

                if (_jogador == null)
                {
                    return(NotFound());
                }

                return(Ok(_jogador));
            }catch (Exception _e) {
                return(BadRequest(_e.Message));

                throw;
            }
        }