public async Task <IActionResult> GetBlogPost(int id) { var post = await blogrepository.AsyncGetBlogPost(id); if (post == null) { return(NotFound()); } return(Ok(post)); }