Exemple #1
0
 public async Task <CountResult> DeleteDataAsync(string SessionKey, DateTime deleteDate)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await dataMaintenanceProcessor.DeleteDataAsync(deleteDate, token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
 public async Task <ActionResult <int> > DeleteData([FromBody] DateTime deleteDate, CancellationToken token)
 => await dataMaintenanceProcessor.DeleteDataAsync(deleteDate, token);