예제 #1
0
 public async Task <BillMemoResult> GetMemoAsync(string SessionKey, long Id)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await billingMemoProcessor.GetMemoAsync(Id, token);
         return new BillMemoResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             BillingMemo = result,
         };
     }, logger));
 }
예제 #2
0
 public async Task <string> GetMemo([FromBody] long id, CancellationToken token)
 => await billingMemoProcessor.GetMemoAsync(id, token);