示例#1
0
 /// <summary>
 /// 课程关联试卷 如果存在那么更新 否则 新增
 /// </summary>
 /// <param name="coursePaper"></param>
 /// <returns></returns>
 public bool InsertOrUpdateCourseMainPaper(Co_CoursePaper coursePaper)
 {
     if (_coursePaperDB.IsExistCourseMainPaper(coursePaper.CourseId.Value))
     {
         return(_coursePaperDB.UpdateCourseMainPaper(coursePaper));
     }
     else
     {
         return(_coursePaperDB.AddCoursePaper(coursePaper));
     }
 }
示例#2
0
 public bool AddCoursePaper(Co_CoursePaper model)
 {
     return(coursepaperDb.AddCoursePaper(model));
 }