Skip to content

Commit

Permalink
CODE RUB: Resolve Review Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
glhays committed Jul 23, 2024
1 parent 210f9cc commit dfd6956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2. Services/2.2 Processings/2.2 Processings.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Here's an example of what a Processing service function would look like:
public ValueTask<Student> UpsertStudentAsync(Student student) =>
TryCatch(async () =>
{
ValidateStudentOnUpert(student);
ValidateStudentOnUpsert(student);

IQueryable<Student> allStudents =
this.studentService.RetrieveAllStudents();
Expand All @@ -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)
};
});
Expand Down

0 comments on commit dfd6956

Please sign in to comment.