コード例 #1
0
        public async Task <GetShowSettingsResponse> Handle(GetShowSettingsRequest request, CancellationToken cancellationToken)
        {
            var          errorMessage = string.Empty;
            ShowSettings response     = null;

            try
            {
                response = await _infoServiceWrapper.GetShowSettings(request.AccountId);
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
            }
            return(await Task.FromResult(new GetShowSettingsResponse
            {
                Success = string.IsNullOrEmpty(errorMessage) ? true : false,
                ErrorMessage = errorMessage,
                ShowSettings = response
            }));
        }