private NetworkCreditView GetNetworkCreditView(string id) { GetRequest request = new GetRequest(); request.ID = Guid.Parse(id); GetNetworkCreditResponse response = this._networkCreditService.GetNetworkCredit(request); return(response.NetworkCreditView); }
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); }