Exemplo n.º 1
0
        protected override async Task <IAccounting> GetDataAsync(IGetAccountingQuery query)
        {
            NullGuard.NotNull(query, nameof(query));

            IAccounting accounting = await AccountingRepository.GetAccountingAsync(query.AccountingNumber, query.StatusDate);

            if (accounting == null)
            {
                return(null);
            }

            _accountingHelper.ApplyLogicForPrincipal(accounting);

            return(accounting);
        }