Skip to content

Commit

Permalink
Merge pull request #283 from hassanhabib/users/glhays/coderub-foundat…
Browse files Browse the repository at this point in the history
…ion-corrections

CODE RUB: Foundation Correction
  • Loading branch information
glhays authored Jul 19, 2024
2 parents 771b25d + 94ce207 commit f6b79ce
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 f6b79ce

Please sign in to comment.