public async Task <CountResult> DeleteAsync(string SessionKey, int CompanyId) { return(await authorizationProcess.DoAuthorizeAsync(SessionKey, async token => { var result = await taskScheduleHistoryProcessor.DeleteAsync(CompanyId, token); return new CountResult { ProcessResult = new ProcessResult { Result = true }, Count = result, }; }, logger)); }
public async Task <int> Delete(int CompanyId, CancellationToken token) => await taskScheduleHistoryProcessor.DeleteAsync(CompanyId, token);