Exemple #1
0
        public IActionResult Details(int id)
        {
            BlogPost post = _blogData.getBlogPostById(id);

            if (post == null)
            {
                return(NotFound());
            }
            return(View(post));
        }