示例#1
0
 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()));
 }
示例#2
0
 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()));
 }