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); }