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