Пример #1
0
 public async Task <CountResult> DeleteAsync(string SessionKey, int Id)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await currencyProcessor.DeleteAsync(Id, token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
Пример #2
0
 public async Task <ActionResult <int> > Delete([FromBody] int id, CancellationToken token)
 => await currencyProcess.DeleteAsync(id, token);