public DataTable GetTestsForUser(int userId) { DataTable dt = User_test.GetAppointedTestForUser(db, userId); dt.TableName = "testsForUser"; return(dt); }
public void addUserTest(int id_user, int id_test, int numberOfTries, float mark, bool ifAvailable, DateTime testTime, bool canSkip, bool canBack, int testContinuesTime) { User_test ut = new User_test(db, id_user, id_test, numberOfTries, mark, ifAvailable, testTime, canSkip, canBack, testContinuesTime); ut.Create(); }