Exemple #1
0
 public async Task <ClosingHistorysResult> GetClosingHistoryAsync(string sessionKey, int companyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
     {
         var result = await closingProcessor.GetClosingHistoryAsync(companyId, token);
         return new ClosingHistorysResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ClosingHistorys = result.ToList(),
         };
     }, logger));
 }
Exemple #2
0
 public async Task <ActionResult <IEnumerable <ClosingHistory> > > GetClosingHistory([FromBody] int companyId, CancellationToken token)
 => (await closingProcessor.GetClosingHistoryAsync(companyId, token)).ToArray();