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