public Task <IAccounting> GetAccountingAsync(int number, DateTime statusDate) { return(ExecuteAsync(async() => { using AccountingModelHandler accountingModelHandler = new AccountingModelHandler(DbContext, AccountingModelConverter.Create(), _eventPublisher, statusDate, true, true); return await accountingModelHandler.ReadAsync(number, new AccountingIdentificationState(number)); }, MethodBase.GetCurrentMethod())); }
public Task <IEnumerable <IAccounting> > GetAccountingsAsync() { return(ExecuteAsync(async() => { using AccountingModelHandler accountingModelHandler = new AccountingModelHandler(DbContext, AccountingModelConverter.Create(), _eventPublisher, DateTime.Today, false, false); return await accountingModelHandler.ReadAsync(); }, MethodBase.GetCurrentMethod())); }