public async Task <CountResult> DeleteAsync(string SessionKey, int CompanyId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await menuAuthorityProcessor.DeleteAsync(CompanyId, token); return new CountResult { ProcessResult = new ProcessResult { Result = true }, Count = result, }; }, logger)); throw new NotImplementedException(); }
public async Task <ActionResult <int> > Delete(MenuAuthoritySearch option, CancellationToken token) => await menuAuthorityProcessor.DeleteAsync(option.CompanyId.Value, token);