public async Task <ActionResult <PlayerResponse> > GetSinglePlayer(int id) { var(status, player) = await _repo.GetSingle(id);; switch (status) { case PlayersRepositoryStatus.NotFound: return(NotFound(id)); default: return(Ok(player)); } }