diff --git a/LangLang/Core/Model/DAO/EnrollmentRequestDAO.cs b/LangLang/Core/Model/DAO/EnrollmentRequestDAO.cs index 403bb8eb..725d1e73 100644 --- a/LangLang/Core/Model/DAO/EnrollmentRequestDAO.cs +++ b/LangLang/Core/Model/DAO/EnrollmentRequestDAO.cs @@ -47,7 +47,7 @@ public EnrollmentRequest Add(EnrollmentRequest enrollmentRequest) EnrollmentRequest? oldRequest = GetEnrollmentRequestById(enrollmentRequest.Id); if (oldRequest == null) return null; - oldRequest.Status = enrollmentRequest.Status; + oldRequest.UpdateStatus(enrollmentRequest.Status); oldRequest.IsCanceled = enrollmentRequest.IsCanceled; oldRequest.LastModifiedTimestamp = DateTime.Now; _repository.Save(_enrollmentRequests);