Beispiel #1
0
        public string GetTeachInfoList()
        {
            TeachingcontentBLL bll = new TeachingcontentBLL();
            DataSet            ds  = bll.GetAllList();

            return(ds.Tables[0].ToJson());
        }
Beispiel #2
0
        public string GetContent(int id)
        {
            TeachingcontentBLL   bll = new TeachingcontentBLL();
            TeachingcontentModel mod = bll.GetModel(id);

            return(mod.ToJson());
        }
Beispiel #3
0
        public string AddTeachInfo(TeachingcontentModel mod)
        {
            TeachingcontentBLL bll = new TeachingcontentBLL();
            bool result            = bll.Add(mod);

            if (result)
            {
                return("添加教学信息成功!".ToJson());
            }
            else
            {
                return("添加教学信息失败!".ToJson());
            }
        }