Beispiel #1
0
        public void DeleteStudent(int Id)
        {
            var Student = registerContext.Students.Where(x => x.Id == Id).FirstOrDefault();

            registerContext.Remove(Student);
            registerContext.SaveChanges();
        }