Skip to content

Commit

Permalink
CODE RUB: Foundation Correction
Browse files Browse the repository at this point in the history
Closes: #278
Closes: #281
  • Loading branch information
glhays committed Jul 19, 2024
1 parent 771b25d commit 94ce207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2. Services/2.1 Foundations/2.1 Foundations.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Foundation services should not integrate with more than one entity broker of any
### 2.1.2.2 Business Language

Broker-neighboring services speak primitive business language for their operations.
For instance, while a Broker may provide a method with the name `InsertStudentAsync` - the equivelant of that on the service layer would be `AddStudentAsync`.
For instance, while a Broker may provide a method with the name `InsertStudentAsync` - the equivalant of that on the service layer would be `AddStudentAsync`.

In general, most of the CRUD operations shall be converted from a storage language to a business language, and the same goes for non-storage operations such as Queues, for instance we say `PostQueueMessage` but on the business layer we shall say `EnqueueMessage`.

Expand Down Expand Up @@ -394,7 +394,7 @@ private void Validate(params (dynamic Rule, string Parameter)[] validations)
{
if(rule.Condition)
{
invalidStudentException.UpsertData(parameter, rule.Message);
invalidStudentException.UpsertDataList(parameter, rule.Message);
}
}

Expand Down

0 comments on commit 94ce207

Please sign in to comment.