Exemple #1
0
        public async Task <GetSessionBySessionCodeResponse> Handle(GetSessionBySessionCodeRequest request, CancellationToken cancellationToken)
        {
            var errorMessage = string.Empty;

            try
            {
                var response = await _infoServiceWrapper.GetSessionBySessionCode(request.AccountId, request.SessionCode);
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
            }
            return(await Task.FromResult(new GetSessionBySessionCodeResponse
            {
                IsServiceCallSuccess = string.IsNullOrEmpty(errorMessage) ? true : false,
                ErrorMessage = errorMessage
            }));
        }