示例#1
0
        public async Task <FetchFieldSetupResponse> Handle(FetchFieldSetupRequest request, CancellationToken cancellationToken)
        {
            var errorMessage = string.Empty;

            try
            {
                var response = await _infoServiceWrapper.FetchFieldSetup();
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
            }
            return(await Task.FromResult(new FetchFieldSetupResponse
            {
                Success = string.IsNullOrEmpty(errorMessage) ? true : false,
                ErrorMessage = errorMessage
            }));
        }