// 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: // SystemName: key of table CrudeDefaultTestData public CrudeDefaultTestModel FetchBySystemName(string systemName) { var dataAccessLayer = new CrudeDefaultTestData(); var model = new CrudeDefaultTestModel(); dataAccessLayer.FetchBySystemName(systemName); DataToModel(dataAccessLayer, model); return(model); }
public CrudeDefaultTestContract FetchBySystemName(string systemName) { var dataAccessLayer = new CrudeDefaultTestData(); var contract = new CrudeDefaultTestContract(); dataAccessLayer.FetchBySystemName(systemName); DataToContract(dataAccessLayer, contract); return(contract); }