public string GetTeachInfoList() { TeachingcontentBLL bll = new TeachingcontentBLL(); DataSet ds = bll.GetAllList(); return(ds.Tables[0].ToJson()); }
public string GetContent(int id) { TeachingcontentBLL bll = new TeachingcontentBLL(); TeachingcontentModel mod = bll.GetModel(id); return(mod.ToJson()); }
public string AddTeachInfo(TeachingcontentModel mod) { TeachingcontentBLL bll = new TeachingcontentBLL(); bool result = bll.Add(mod); if (result) { return("添加教学信息成功!".ToJson()); } else { return("添加教学信息失败!".ToJson()); } }