Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ER-1464_Show legal entity name #834

Merged
merged 3 commits into from
Sep 26, 2019
Merged

Conversation

shomavg
Copy link
Contributor

@shomavg shomavg commented Sep 24, 2019

No description provided.

Copy link
Contributor

@chrisjensenuk chrisjensenuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed - parrallel the 2 async calls and do a Task.WhenAll()


var legalEntityTask =
_legalEntityAgreementService.GetLegalEntityAsync(vrm.EmployerAccountId, legalEntityId);
var hasLegalEntityAgreementTask =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed - these two functions both get the legal entity from the database. If we add a new function to LegalEntityAgreementService. E.g.
public async Task<bool> HasLegalEntityAgreementAsync(LegalEntity legalEntity)
Then we'll only need to get the legalEntity once from the Db.

Copy link
Contributor

@chrisjensenuk chrisjensenuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@shomavg shomavg merged commit 7bcf07b into master Sep 26, 2019
@shomavg shomavg deleted the ER-1464-Show-legalEntityName branch September 26, 2019 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants