Beispiel #1
0
        public CustomGenericList <Name> NameListBetweenDates(string startRow, string batchSize, string startDate, string endDate)
        {
            // Validate the input
            int startRowValid;
            int batchSizeValid;

            this.ValidateNameListStartAndBatch(startRow, batchSize, out startRowValid, out batchSizeValid);

            DateTime startDT;
            DateTime endDT;

            if (!DateTime.TryParse(startDate, out startDT))
            {
                throw new SoapException("startDate (" + startDate + ") must be a valid date value (MM/DD/YYYY).", SoapException.ClientFaultCode);
            }
            if (!DateTime.TryParse(endDate, out endDT))
            {
                throw new SoapException("endDate (" + endDate + ") must be a valid date value (MM/DD/YYYY).", SoapException.ClientFaultCode);
            }

            return(NameServiceDAL.PageNameListActiveBetweenDates(null, null, startRowValid, batchSizeValid, startDT, endDT));
        }