public AttendeeUser(Session session, ItlabUser user) { Session = session; SessionId = session.Id; UserUsernameNavigation = user; UserUsername = user.Username; }
public RegisterdUser(Session session, ItlabUser user) { Session = session; UserUsernameNavigation = user; SessionId = session.Id; UserUsername = user.Username; }
public void AddRegisteredUser(ItlabUser user) { if (user.UserStatus == UserStatus.ACTIVE) { RegisterdUser.Add(new RegisterdUser(this, user)); } else { throw new ArgumentException("Je account staat op nonactive contacteer de itlab verantwoordlijke"); } }
public void AddFeedback(ItlabUser user, string text) { if (user.UserStatus == UserStatus.ACTIVE) { Feedback.Add(new Feedback(user, text)); } else { throw new ArgumentException("Je account staat op nonactive contacteer de itlab verantwoordlijke"); } ; }
public void AddAttendeeUser(ItlabUser itlabUser) { if (!RegisterdUser.Any(e => e.UserUsernameNavigation.Equals(itlabUser))) { if (RegisterdUser.Count() < Maxattendee) { AddRegisteredUser(itlabUser); } else { throw new ArgumentException("user niet ingeschreven max aantal plaatsen bereikt"); } } if (!AttendeeUser.Any(e => e.UserUsernameNavigation.Equals(itlabUser))) { AttendeeUser.Add(new AttendeeUser(this, itlabUser)); } else { throw new ArgumentException("user is al aanwezig"); } }
public Feedback(ItlabUser author, string content) { AuthorUsernameNavigation = author; AuthorUsername = author.Username; Contenttext = content; }
public void RemoveRegisteredUser(ItlabUser user) { RegisterdUser.Remove(RegisterdUser.First(e => e.UserUsername == user.Username)); }
internal void RemoveAttendeeUser(ItlabUser userAttend) { AttendeeUser.Remove(AttendeeUser.First(e => e.UserUsernameNavigation.Equals(userAttend))); }