public string Deletepost(DeletePost post) { if (post != null) { if (post.postid != null) { _dbhelper.DeletePost(post.postid); RebuildRoutes.Rebuild(true, _dbhelper); return("deleted " + post.postid); } else { return("postid null"); } } else { return("post null"); } }