public void DeleteStudent(Attendance student) { if (student == null) { throw new ArgumentNullException(nameof(student)); } _dbContext.Remove(student); }