Пример #1
0
        public async Task <IActionResult> GetBlogPost(int id)
        {
            var post = await blogrepository.AsyncGetBlogPost(id);

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