public async Task <AccountTransferLogsResult> GetAsync(string SessionKey, int CompanyId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await accounttransferProcessor.GetAsync(CompanyId, token)).ToList(); return new AccountTransferLogsResult { ProcessResult = new ProcessResult { Result = true }, AccountTransferLog = result, }; }, logger)); }
public async Task <IEnumerable <AccountTransferLog> > Get([FromBody] int CompanyId, CancellationToken token) => (await accounttransferProcessor.GetAsync(CompanyId, token)).ToArray();