Ejemplo n.º 1
0
        public customerSearchResult findCustomerById(ISyncWSParameter dataParam, string clientId, string customerId)
        {
            IDataReader          reader = null;
            int                  totalRows;
            customerSearchResult res = new customerSearchResult();

            Findcustomersbyid(
                clientId,
                customerId,
                out reader);

            ArrayList list = ReaderHelper.Read(
                reader,
                new customer(),
                dataParam.GetSkipNoFirstRows(),
                dataParam.GetMaxRows(),
                out totalRows);

            res.list = list.ToArray(typeof(customer)) as customer[];
            res.SetTotalRows(totalRows);

            return(res);
        }