Example #1
0
 public async Task <ClosingInformationResult> GetClosingInformationAsync(string sessionKey, int companyId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
     {
         var result = await closingProcessor.GetClosingInformationAsync(companyId, token);
         return new ClosingInformationResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ClosingInformation = result
         };
     }, logger));
 }
Example #2
0
 public async Task <ActionResult <ClosingInformation> > GetClosingInformation([FromBody] int companyId, CancellationToken token)
 => await closingProcessor.GetClosingInformationAsync(companyId, token);