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)); }
public async Task <int> Delete([FromBody] long id, CancellationToken token) => await receiptProcessor.DeleteAsync(id, token);