public ISyncWSResult getCustomerOrderTypes(Database database, ISyncWSParameter dataParameter) { customerOrderSearchParameters customerOrderSearchParameters = (customerOrderSearchParameters)dataParameter; WebServices3pl pkg = new WebServices3pl(database); customerOrderTypeSearchResult res = pkg.Findcustomerordertype(dataParameter); return(res); }
public customerOrderTypeSearchResult Findcustomerordertype(ISyncWSParameter dataParam) { IDataReader reader = null; customerOrderTypeSearchResult res = new customerOrderTypeSearchResult(); int totalRows; Findcustomerordertype( out reader); ArrayList list = ReaderHelper.Read( reader, new customerOrderType(), dataParam.GetSkipNoFirstRows(), dataParam.GetMaxRows(), out totalRows); res.list = list.ToArray(typeof(customerOrderType)) as customerOrderType[]; res.SetTotalRows(totalRows); return(res); }