Ejemplo n.º 1
0
        public async Task <ExistResult> ExistCompanyAsync(string SessionKey, int CompanyId)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await receiptProcessor.ExistCompanyAsync(CompanyId, token);

                return new ExistResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    Exist = result,
                };
            }, logger));
        }
Ejemplo n.º 2
0
 public async Task <bool> ExistCompany([FromBody] int CompanyId, CancellationToken token)
 => await receiptProcessor.ExistCompanyAsync(CompanyId, token);