Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public async Task <ActionResult <int> > Delete(MenuAuthoritySearch option, CancellationToken token)
 => await menuAuthorityProcessor.DeleteAsync(option.CompanyId.Value, token);