public void DeleteStudents(int[] studentIds)
        {
            using (ClassAdministrationEntityContext context = new ClassAdministrationEntityContext(BUTEClassAdministrationService.Properties.Resources.connectionString))
            {
                var students = context.StudentSet.Where(student => studentIds.Contains(student.Id));

                foreach (var student in students)
                {
                    context.DeleteObject(student);
                }

                context.SaveChanges();
            }
        }
        public void DeleteInstructors(int[] instructorIds)
        {
            using (ClassAdministrationEntityContext context = new ClassAdministrationEntityContext(BUTEClassAdministrationService.Properties.Resources.connectionString))
            {

                var instructors = context.InstructorSet.Where(instructor => instructorIds.Contains(instructor.Id));

                foreach (var instructor in instructors)
                {
                    context.DeleteObject(instructor);
                }

                context.SaveChanges();
            }
        }