public SubsidiaryLedgerDto GetSubsidiaryLedger(string subsidiaryLedgerUID) { Assertion.AssertObject(subsidiaryLedgerUID, "subsidiaryLedgerUID"); var subsidiaryLedger = SubsidiaryLedger.Parse(subsidiaryLedgerUID); return(SubsidiaryLedgerMapper.Map(subsidiaryLedger)); }
public SubsidiaryAccountDto GetSubsidiaryAccount(string subsidiaryLedgerUID, int subsidiaryAccountId) { Assertion.AssertObject(subsidiaryLedgerUID, "subsidiaryLedgerUID"); Assertion.Assert(subsidiaryAccountId > 0, "subsidiaryAccountId"); var subsidiaryLedger = SubsidiaryLedger.Parse(subsidiaryLedgerUID); SubsidiaryAccount subsidiaryAccount = subsidiaryLedger.GetAccountWithId(subsidiaryAccountId); return(SubsidiaryLedgerMapper.MapAccount(subsidiaryAccount)); }