public CrudeDefaultIssueContract FetchByIssueName(string issueName) { var dataAccessLayer = new CrudeDefaultIssueData(); var contract = new CrudeDefaultIssueContract(); dataAccessLayer.FetchByIssueName(issueName); DataToContract(dataAccessLayer, contract); return(contract); }
// fetch by Search key into current object // links: // crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete // docLink: http://sql2x.org/documentationLink/ad2dd952-e3ec-471a-9e34-f5fc965b8b37 // parameters: // IssueName: key of table CrudeDefaultIssueData public CrudeDefaultIssueModel FetchByIssueName(string issueName) { var dataAccessLayer = new CrudeDefaultIssueData(); var model = new CrudeDefaultIssueModel(); dataAccessLayer.FetchByIssueName(issueName); DataToModel(dataAccessLayer, model); return(model); }