Beispiel #1
0
        public async Task <ActionResult <Post> > GetPost(int id)
        {
            var post = await repositoryData.GetPostById_Async(id);

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

            return(post);
        }