public async Task <CountResult> DeleteAsync(string SessionKey, int Id) => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await destinationProcessor.DeleteAsync(Id, token); return(new CountResult { ProcessResult = new ProcessResult { Result = true }, Count = result, }); }, logger);
public async Task <ActionResult <int> > Delete(Destination destination, CancellationToken token) => await destinationProcessor.DeleteAsync(destination.Id, token);