public async Task <IActionResult> GetPlayer([FromRoute] Guid id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var player = await _service.GetByIdSync(id); if (player == null) { return(NotFound()); } return(Ok(player)); }