public CrudeFinancialPaymentBankContract FetchByBankName(string bankName)
        {
            var dataAccessLayer = new CrudeFinancialPaymentBankData();
            var contract        = new CrudeFinancialPaymentBankContract();

            dataAccessLayer.FetchByBankName(bankName);
            DataToContract(dataAccessLayer, contract);

            return(contract);
        }
示例#2
0
        // 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:
        //  BankName: key of table CrudeFinancialPaymentBankData
        public CrudeFinancialPaymentBankModel FetchByBankName(string bankName)
        {
            var dataAccessLayer = new CrudeFinancialPaymentBankData();
            var model           = new CrudeFinancialPaymentBankModel();

            dataAccessLayer.FetchByBankName(bankName);
            DataToModel(dataAccessLayer, model);

            return(model);
        }