public async Task <AddNewBarcodeResponse> Handle(AddNewBarcodeRequest request, CancellationToken cancellationToken) { var errorMessage = string.Empty; try { await _infoServiceWrapper.AddNewBarCode(request.AccountId, request.ContactKey, request.BarcodeNumber); } catch (Exception ex) { errorMessage = ex.Message; } return(await Task.FromResult(new AddNewBarcodeResponse { IsServiceCallSuccess = string.IsNullOrEmpty(errorMessage) ? true : false, ErrorMessage = errorMessage })); }