/// <summary> /// 添加课程 /// </summary> /// <param name="course">课程对象</param> /// <returns></returns> public bool AddCourse(Course course) { return(dal.AddCourse(course) > 0); }
public static int AddCourse(Course c, Staff leadStaff, Staff supportStaff, IEnumerable <Prerequisite> prerequisites) { return(CourseDAL.AddCourse(c, leadStaff, supportStaff, prerequisites)); }
/// <summary> /// 添加 ///</summary> public static int AddCourse(Course CourseModel) { return(CourseDAL.AddCourse(CourseModel)); }
public void AddCourse(Course course) { CourseDAL dal = new CourseDAL(); dal.AddCourse(course); }