Esempio n. 1
0
        public Department AddStudentToDepartment(Department department, Student student)
        {
            List<Student> Students = department.Students;
            Students.Add(student);

            return department;
        }
Esempio n. 2
0
        public Department GetDepartment()
        {
            Department department = new Department
            {
                SchoolName = "School of Some Engineering",
                DepartmentName = "Department of Cool Rest WCF",
                Students = new List<Student>()
            };

            return department;
        }