public CrudeFinancialVoucherTypeRefContract FetchByFinancialVoucherTypeName(string financialVoucherTypeName) { var dataAccessLayer = new CrudeFinancialVoucherTypeRefData(); var contract = new CrudeFinancialVoucherTypeRefContract(); dataAccessLayer.FetchByFinancialVoucherTypeName(financialVoucherTypeName); 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: // FinancialVoucherTypeName: key of table CrudeFinancialVoucherTypeRefData public CrudeFinancialVoucherTypeRefModel FetchByFinancialVoucherTypeName(string financialVoucherTypeName) { var dataAccessLayer = new CrudeFinancialVoucherTypeRefData(); var model = new CrudeFinancialVoucherTypeRefModel(); dataAccessLayer.FetchByFinancialVoucherTypeName(financialVoucherTypeName); DataToModel(dataAccessLayer, model); return(model); }