protected void btnAddAnnwer_Click(object sender, EventArgs e) { AnswerDAL aDAL = new AnswerDAL(); aDAL.AddAnswer(txtbxAnswer.Text, ddlQuestion.SelectedValue, chbxIsRightAnswer.Checked); GetViewOfAnswers(); }
public long AddAnswer(AnswerDTO Answer) { AnswerDal = new AnswerDAL(); return(AnswerDal.AddAnswer(Answer)); }