public async Task <ExistResult> ExistBillingCategoryAsync(string SessionKey, int CategoryId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = await billingProcessor.ExistBillingCategoryAsync(CategoryId, token); return new ExistResult { ProcessResult = new ProcessResult { Result = true }, Exist = result, }; }, logger)); }
public async Task <bool> ExistBillingCategory([FromBody] int categoryId, CancellationToken token) => await billingProcessor.ExistBillingCategoryAsync(categoryId, token);