public void AddUserAndEvent(User user, ITEvent ite) { CSGroep01DataSet.signupRow signupRow = csGroep01DataSet.signup.NewsignupRow(); FillUserAndEventRow(signupRow, user, ite); csGroep01DataSet.signup.Rows.Add(signupRow); sta.Update(csGroep01DataSet.signup); }
private void FillUserAndEventRow(CSGroep01DataSet.signupRow signupRow, User user, ITEvent ite) { signupRow.userid = user.Userid; signupRow.eventid = ite.EventNumber; }