protected void btnCommentDelete_Click(object sender, EventArgs e) { var repo = new CongressCommentRespository(); if (repo.GetCountBy(ArticleId, Id, txtPassword.Text) > 0) { repo.DeleteComment(ArticleId, Id, txtPassword.Text); Response.Redirect($"CongressView.aspx?Id={ArticleId}"); } else { lblError.Text = "암호가 틀립니다. 다시 입력해주세요."; } }
public BoardCommentControl() { _repository = new CongressCommentRespository(); }