// 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: // ServicePackageName: key of table CrudeServicePackageData public CrudeServicePackageModel FetchByServicePackageName(string servicePackageName) { var dataAccessLayer = new CrudeServicePackageData(); var model = new CrudeServicePackageModel(); dataAccessLayer.FetchByServicePackageName(servicePackageName); DataToModel(dataAccessLayer, model); return model; }
public CrudeServicePackageContract FetchByServicePackageName(string servicePackageName) { var dataAccessLayer = new CrudeServicePackageData(); var contract = new CrudeServicePackageContract(); dataAccessLayer.FetchByServicePackageName(servicePackageName); DataToContract(dataAccessLayer, contract); return(contract); }