protected override Task PrepareReadAsync(Tuple <int, string> primaryKey, AccountingIdentificationState accountingIdentificationState) { NullGuard.NotNull(primaryKey, nameof(primaryKey)) .NotNull(accountingIdentificationState, nameof(accountingIdentificationState)); return(PrepareReadAsync(new AccountingIdentificationState(primaryKey.Item1))); }
protected override async Task PrepareReadAsync(AccountingIdentificationState accountingIdentificationState) { NullGuard.NotNull(accountingIdentificationState, nameof(accountingIdentificationState)); await base.PrepareReadAsync(accountingIdentificationState); if (_includeCreditInformation == false) { return; } _creditInfoModelCollection ??= await _creditInfoModelHandler.ForAsync(accountingIdentificationState.AccountingIdentifier); }
protected override async Task PrepareReadAsync(AccountingIdentificationState accountingIdentificationState) { NullGuard.NotNull(accountingIdentificationState, nameof(accountingIdentificationState)); _accountingModel ??= await AccountingModelHandler.ForAsync(accountingIdentificationState.AccountingIdentifier); if (_includePostingLines == false || PostingLineModelHandler == null) { return; } _postingLineModelCollection ??= await PostingLineModelHandler.ForAsync(accountingIdentificationState.AccountingIdentifier); }
protected override async Task PrepareReadAsync(AccountingIdentificationState accountingIdentificationState) { NullGuard.NotNull(accountingIdentificationState, nameof(accountingIdentificationState)); _budgetAccountModelCollection ??= await _budgetAccountModelHandler.ForAsync(accountingIdentificationState.AccountingIdentifier); }