public async Task <CheckGateResponse> Handle(CheckGateRequest request, CancellationToken cancellationToken) { var errorMessage = string.Empty; try { var response = await _infoServiceWrapper.CheckGate(request.AccountId, request.GateNumber); } catch (Exception ex) { errorMessage = ex.Message; } return(await Task.FromResult(new CheckGateResponse { Success = string.IsNullOrEmpty(errorMessage) ? true : false, ErrorMessage = errorMessage })); }