public async Task <ActionResult <bool> > DeletePlayerAsync(long teamId, long playerId) { try { var result = await _playerService.DeletePlayerAsync(teamId, playerId); return(Ok(result)); } catch (NotFoundItemException ex) { return(NotFound(ex.Message)); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError, "Something unexpected happened.")); } }