Example #1
0
        public IHttpActionResult GetById(int id)
        {
            var game = this.data.Games.Find(id);
            if (game == null)
            {
                return NotFound();
            }

            var gamesDetailModel = new GameDetailModel(game);

            return Ok(gamesDetailModel);
        }