public ActionResult <GamesReadDto> GetGameById(int id) { var gamesItems = _repository.GetGameById(id); if (gamesItems != null) { return(Ok(_mapper.Map <GamesReadDto>(gamesItems))); } return(NotFound()); }