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)); }
public Exam GetExam(DBConnection connection) { return(ExamTable.GetExamById(connection, this.ExamId)); }
public static bool DeleteExam(DBConnection connection, Exam exam, User user) { return(ExamTable.DeleteExam(connection, exam, user.Id)); }