public Assignment(string assign, string description, short maxPoints, DateTime dueDate, AssignmentTypesEnum type, Section section) { this.AssignmentGrades = new List <AssignmentGrade>(); //this.Id = id; this.Assign = assign; this.Description = description; this.MaxPoints = maxPoints; this.DueDate = dueDate; this.Type = type; this.Section = section; this.Section.Assignments.Add(this); }
public Assignment(int id, String assign, String description, short maxpoints, DateTime dueDate, AssignmentTypesEnum types, Section section) { this.AssignmentGrades = new HashSet <AssignmentGrade>(); this.Id = id; this.Assign = assign; this.Description = description; this.MaxPoints = maxpoints; this.DueDate = dueDate; this.Section = section; section.Assignments.Add(this); this.Type = types; }