BC.Web.Controllers.GamesController.GetById C# (CSharp) Method

GetById() private method

private GetById ( int id ) : IHttpActionResult
id int
return IHttpActionResult
        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);
        }