public void CopyQuestion()
{
Phase Phase = new Phase();
PhaseQuestionBL PhaseQuestionBL = new PhaseQuestionBL();
foreach (DataGridViewRow row in dgv_Question.Rows)
{
if (row.Cells["Check"].Value != null && (bool)row.Cells["Check"].Value == true)
{
Phase.IDPhase = idPhase;
Phase.IDContest = idContest;
//Phase.Question.IDQuestion = Convert.ToInt32(row.Cells["IDQuestion"].Value);
Phase.IDQuestion = Convert.ToInt32(row.Cells["IDQuestion"].Value);
Phase.Status = 1;
PhaseQuestionBL.AddPhaseQuestion(Phase);
}
}
}