コード例 #1
0
        public ActionResult <GamesReadDto> GetGameById(int id)
        {
            var gamesItems = _repository.GetGameById(id);

            if (gamesItems != null)
            {
                return(Ok(_mapper.Map <GamesReadDto>(gamesItems)));
            }
            return(NotFound());
        }