Beispiel #1
0
        public int NameCountBetweenDates(string startDate, string endDate)
        {
            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.PageNameCountUniqueConfirmedBetweenDates(null, null, startDT, endDT));
        }