protected void SubmitVote(int vote) { CommentManagementBO comBO = new CommentManagementBO(); UserManagementBO userBO = new UserManagementBO(); CommentVO comVO = comBO.GetComment(commentID); UserVO userVO; if (Session["login"] != null) { userVO = userBO.GetUser(Session["login"].ToString()); if (comBO.CheckIfVoted(commentID, userVO.UserID) == 0) { comBO.SubmitVote(commentID, userVO.UserID, vote); commentRating += vote; Response.Redirect(Request.Url.ToString()); } } }