private string GetExamId(string examinationType)
        {
            List <Examination> examinations         = new List <Examination>();
            ExaminationGateway anExaminationGateway = new ExaminationGateway();

            examinations = anExaminationGateway.GetAllExaminations();
            foreach (Examination aExamination in examinations)
            {
                if (aExamination.ExaminationType == examinationType)
                {
                    return(aExamination.ExaminationId);
                }
            }
            return(null);
        }
 private string GetExamId(string examinationType)
 {
     List<Examination> examinations = new List<Examination>();
     ExaminationGateway anExaminationGateway = new ExaminationGateway();
     examinations = anExaminationGateway.GetAllExaminations();
     foreach (Examination aExamination in examinations)
     {
         if (aExamination.ExaminationType == examinationType)
         {
             return aExamination.ExaminationId;
         }
     }
     return null;
 }
 public List<Examination> GetAllExaminations()
 {
     ExaminationGateway anExaminationGateway=new ExaminationGateway();
        return anExaminationGateway.GetAllExaminations();
 }