public async Task <GetCoreDetailsResponse> Handle(GetCoreDetailsRequest request, CancellationToken cancellationToken) { var errorMessage = string.Empty; CoreDetail response = null; try { response = await _infoServiceWrapper.GetCoreDetails1(request.AccountId, request.ActiveOnly, request.RowLimit, request.QueryParams); } catch (Exception ex) { errorMessage = ex.Message; } return(await Task.FromResult(new GetCoreDetailsResponse { Success = string.IsNullOrEmpty(errorMessage) ? true : false, ErrorMessage = errorMessage, CoreDetail = response })); }