public void AddExam(Student student, Trainer trainer) { var _dataAccess = new DataAccess(); _dataAccess.Create(student, trainer); }
/// <summary> /// Exam Nesnesini Text Dosyasına Yaz /// </summary> /// <param name="student"> /// /// </param> /// <param name="trainer"> /// /// </param> public void Create(Student student, Trainer trainer) { var line = new string[] { string.Format(@"{0}|{1}", trainer.TcKimlikNo, student.TcKimlikNo) }; File.WriteAllLines(_examFile, line); }