diff --git a/2. Services/2.2 Processings/2.2 Processings.md b/2. Services/2.2 Processings/2.2 Processings.md index 8d644c5..e0bcd58 100644 --- a/2. Services/2.2 Processings/2.2 Processings.md +++ b/2. Services/2.2 Processings/2.2 Processings.md @@ -12,7 +12,7 @@ Here's an example of what a Processing service function would look like: public ValueTask UpsertStudentAsync(Student student) => TryCatch(async () => { - ValidateStudentOnUpert(student); + ValidateStudentOnUpsert(student); IQueryable allStudents = this.studentService.RetrieveAllStudents(); @@ -21,7 +21,7 @@ TryCatch(async () => retrievedStudent.Id == student.Id); return studentExists switch { - false => await this.studentService.AddStudentAsync(student), + false => await this.studentService.RegisterStudentAsync(student), _ => await this.studentService.ModifyStudentAsync(student.Id) }; });