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