示例#1
0
        public void AddExam(Student student, Trainer trainer)
        {
            var _dataAccess = new DataAccess();

            _dataAccess.Create(student, trainer);
        }
示例#2
0
        /// <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);
        }