예제 #1
0
        public Teacher AddOneTea(Teacher tea)
        {
            DBSession db   = new DBSession();
            Teacher   tea1 = teaDal.Add(tea);

            db.SaveChanges();
            return(tea1);
        }
예제 #2
0
 public bool AddTeacher(Teacher tch)
 {
     return(tchDal.Add(tch) > 0);
 }