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