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