コード例 #1
0
        private NetworkCreditView GetNetworkCreditView(string id)
        {
            GetRequest request = new GetRequest();

            request.ID = Guid.Parse(id);

            GetNetworkCreditResponse response = this._networkCreditService.GetNetworkCredit(request);

            return(response.NetworkCreditView);
        }
コード例 #2
0
        public GetNetworkCreditResponse GetNetworkCredit(GetRequest request)
        {
            GetNetworkCreditResponse response = new GetNetworkCreditResponse();

            try
            {
                NetworkCredit     networkCredit     = new NetworkCredit();
                NetworkCreditView networkCreditView = networkCredit.ConvertToNetworkCreditView();

                networkCredit = _networkCreditRepository.FindBy(request.ID);
                if (networkCredit != null)
                {
                    networkCreditView = networkCredit.ConvertToNetworkCreditView();
                }

                response.NetworkCreditView = networkCreditView;
            }
            catch (Exception ex)
            {
            }

            return(response);
        }