예제 #1
0
        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));
            }
        }