public IActionResult Details(int id) { var Posts = posts.GetPostByID(id); if (Posts == null) { return(NotFound()); } return(View(Posts)); }