public async Task <NettingResult> DeleteAsync(string SessionKey, long[] NettingId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var rseult = await nettingProcessor.DeleteAsync(NettingId, token); return new NettingResult { ProcessResult = new ProcessResult { Result = true }, }; }, logger)); }
public async Task <ActionResult <int> > Delete([FromBody] IEnumerable <long> ids, CancellationToken token) => await nettingProcessor.DeleteAsync(ids, token);