Ejemplo n.º 1
0
        public async Task <UndoLastPhotoGateScanResponse> Handle(UndoLastPhotoGateScanRequest request, CancellationToken cancellationToken)
        {
            var errorMessage = string.Empty;
            var response     = 0;

            try
            {
                response = await _infoServiceWrapper.UndoLastPhotoGateScan(request.AccountId, request.ContactKey, request.GateName);
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
            }
            return(await Task.FromResult(new UndoLastPhotoGateScanResponse
            {
                IsServiceCallSuccess = string.IsNullOrEmpty(errorMessage) ? true : false,
                ErrorMessage = errorMessage,
                UndoLastPhotoGateScanResult = response
            }));
        }