Exemplo n.º 1
0
        public void AddTeacher()
        {
            Teacher teacher = new Teacher();
            teacher.ExternalId = Guid.NewGuid().ToString();
            teacher.Name = "Иван";
            teacher.Surname = "Иванов";
            teacher.Patronomic = "Иванович";
            teacher.Cathedral = "ИС";
            teacher.Email = "*****@*****.**";

            teacherRepository.AddTeacher(teacher);
        }
 public void AddTeacher(Teacher teacher)
 {
     _collection.InsertOneAsync(teacher);
 }