Ejemplo n.º 1
0
        //添加班级信息
        public bool AddTeachingTask(TeachingModel objTeachingModel)
        {
            string Sqlstring = "Insert into Teaching Values('T001','第一学期','c1000')";

            DataBaseOperaClass objDataBase = new DataBaseOperaClass();

            if (objDataBase.GetExecute(Sqlstring))
                return (true);
            else
                return (false);
        }
Ejemplo n.º 2
0
        //添加班级信息的业务逻辑
        public bool AddClass(TeachingModel objTeachingModel)
        {
            TeachingDAL objTeachingDAL = new TeachingDAL();

            return (objTeachingDAL.AddTeachingTask(objTeachingModel));
        }