示例#1
0
 public static Exam InsertExam(DBConnection connection, User owner, string name, int timelimit, int minimum_points, int maximum_attempts, DateTime startDate, DateTime endDate)
 {
     return(ExamTable.InsertExam(connection, owner.Id, name, timelimit, minimum_points, maximum_attempts, startDate, endDate));
 }
示例#2
0
 public Exam GetExam(DBConnection connection)
 {
     return(ExamTable.GetExamById(connection, this.ExamId));
 }
示例#3
0
 public static bool DeleteExam(DBConnection connection, Exam exam, User user)
 {
     return(ExamTable.DeleteExam(connection, exam, user.Id));
 }