예제 #1
0
 public async Task <CountResult> DeleteAsync(string SessionKey, long Id)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => {
         var result = await receiptProcessor.DeleteAsync(Id, token);
         return new CountResult {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
예제 #2
0
 public async Task <int> Delete([FromBody] long id, CancellationToken token)
 => await receiptProcessor.DeleteAsync(id, token);