Ejemplo n.º 1
0
 private void ExaminationSave()
 {
     examinationController = new ExaminationController();
     Entities.Examination examination = new Entities.Examination();
     examination.AppointmentId = appointmentID;
     if (radioAppointmentStatusTrue.Checked)
     {
         examination.IsValid = true;
     }
     else
     {
         examination.IsValid = false;
     }
     examination.DiagnosisId = ((Entities.Diagnosis)cmbDiagnosis.SelectedItem).DiagnosisId;
     if (radioButtonNeedTestTrue.Checked)
     {
         examination.IsNeedTest = true;
     }
     else
     {
         examination.IsNeedTest = false;
     }
     examinationController.Add(examination);
     examinationID = examination.ExaminationId;
 }