Articles.Web.Controllers.ArticlesController.GetById C# (CSharp) Method

GetById() private method

private GetById ( int id ) : IHttpActionResult
id int
return IHttpActionResult
        public IHttpActionResult GetById(int id)
        {
            var article = this.data.Articles.Find(id);
            if (article == null)
            {
                return NotFound();
            }

            var articleModel = new ArticlesDetailsModel(article);

            return Ok(articleModel);
        }