public SurveyCollection(SurveyUser user)
 {
     currentUser = user;
     if (user.Role.HasFlag(UserRole.Admin))
     {
         canAdd = true;
     }
     Surveys = new SurveyObjectCollection <Survey>();
 }
Exemple #2
0
 public Question(string title, int id) : base(title, id)
 {
     Answers = new SurveyObjectCollection <Answer>();
 }
Exemple #3
0
 public Survey(string title, int id, SurveyUser creator) : base(title, id)
 {
     Questions   = new SurveyObjectCollection <Question>();
     UserCreator = creator;
 }