public ActionResult <Post> GetPost(string id) { var post = _postServices.GetPublicPost(id); if (post == null) { return(BadRequest()); } return(post); }