protected void btnSave_Click(object sender, EventArgs e)
    {
        List <SymptomDO> listSymptom = new List <SymptomDO>();

        int departmentId = Convert.ToInt16(ddlDepartment.SelectedItem.Value);

        foreach (RadListBoxItem item in rlbSelectedDiagnosisList.Items)
        {
            SymptomDO s = new SymptomDO();
            s.DepartmentId = departmentId;
            s.DiagnosisId  = Convert.ToInt32(item.Value);
            listSymptom.Add(s);
        }

        bool isSaved = new DoctorBAL().SaveDepartmentDiagnosis(listSymptom, departmentId); //Save Department Diagnosis List

        if (isSaved)
        {
            btnSave.Visible = false;
            lblInfo.Visible = true;
            lblInfo.Text    = "<br/>Saved Successfully!";
        }
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        List<SymptomDO> listSymptom = new List<SymptomDO>();

        int departmentId = Convert.ToInt16(ddlDepartment.SelectedItem.Value);
        foreach (RadListBoxItem item in rlbSelectedDiagnosisList.Items)
        {
                SymptomDO s = new SymptomDO();
                s.DepartmentId = departmentId;
                s.DiagnosisId = Convert.ToInt32(item.Value);
                listSymptom.Add(s);
         }

        bool isSaved = new DoctorBAL().SaveDepartmentDiagnosis(listSymptom, departmentId); //Save Department Diagnosis List
        if (isSaved)
        {
            btnSave.Visible = false;
            lblInfo.Visible = true;
            lblInfo.Text = "<br/>Saved Successfully!";
        }
    }