// fetch by Primary key into current object // links: // crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete // docLink: http://sql2x.org/documentationLink/fdcc33b4-08f1-43c3-ae28-95fbf029c3bd // parameters: // CrudeCartProductData: primary key of table CrudeCartProductData public CrudeCartProductModel FetchByCartProductId(System.Guid cartProductId) { var dataAccessLayer = new CrudeCartProductData(); var model = new CrudeCartProductModel(); dataAccessLayer.FetchByCartProductId(cartProductId); DataToModel(dataAccessLayer, model); return(model); }
// fetch by Primary key into current object // links: // crud definition: https://en.wikipedia.org/wiki/Create,_read,_update_and_delete // docLink: http://sql2x.org/documentationLink/bbab4791-c9e7-49bf-90d5-fca19b1fedaa // parameters: // cartProductId: primary key of table cart_product public CrudeCartProductContract FetchByCartProductId(System.Guid cartProductId) { var dataAccessLayer = new CrudeCartProductData(); var contract = new CrudeCartProductContract(); dataAccessLayer.FetchByCartProductId(cartProductId); DataToContract(dataAccessLayer, contract); return(contract); }