public void DeleteStudent(string userId) { if (userId == null) throw new ParameterException("UserID cannot be null"); if (!Guid.TryParse(userId, out Guid guid)) throw new ParameterException("UserID is invalid"); _studentRepository.AnonymizeStudentUser(userId); }