Ejemplo n.º 1
0
        // fetch all from table into new List of class instances, filtered by any column
        // links:
        //  docLink: http://sql2x.org/documentationLink/db27658d-4d23-46d7-9970-7bbaef8634b0
        public List <CrudeCartUserModel> FetchWithFilter(System.Guid cartUserId)
        {
            var list = new List <CrudeCartUserModel>();
            List <CrudeCartUserData> dataList = CrudeCartUserData.FetchWithFilter(cartUserId);

            foreach (CrudeCartUserData data in dataList)
            {
                var crudeCartUserBusinessModel = new CrudeCartUserModel();
                DataToModel(data, crudeCartUserBusinessModel);
                list.Add(crudeCartUserBusinessModel);
            }

            return(list);
        }
Ejemplo n.º 2
0
        // fetch all rows from table into new List of Contracts, filtered by any column
        // links:
        //  docLink: http://sql2x.org/documentationLink/ce01ef4a-5cd0-4e51-b211-9c0a15b791a0
        public List <CrudeCartUserContract> FetchWithFilter(System.Guid cartUserId)
        {
            var list = new List <CrudeCartUserContract>();
            List <CrudeCartUserData> dataList = CrudeCartUserData.FetchWithFilter(
                cartUserId: cartUserId
                );

            foreach (CrudeCartUserData data in dataList)
            {
                var crudeCartUserContract = new CrudeCartUserContract();
                DataToContract(data, crudeCartUserContract);
                list.Add(crudeCartUserContract);
            }

            return(list);
        }