public static string DeclineComment(string id) { if (id != "") { int commentid = Convert.ToInt32(id); BlogModel objBlog = new BlogModel(); objBlog.CommentDecline(commentid); } return("Comment Decline Succesfully"); }