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