private IEnumerable <DTO.Customer> searchByPhone(string keyword)
        {
            var regex = RegexProxy.getInstance().getRegex(keyword);

            return(_entry.Where(customer => regex.IsMatch(customer.phone)));
        }
示例#2
0
        private IEnumerable <DTO.TourSite> searchByName(string keyword)
        {
            var regex = RegexProxy.getInstance().getRegex(keyword);

            return(_entry.Where(toursite => regex.IsMatch(toursite.name)));
        }
        private IEnumerable <DTO.Customer> searchByIdentifyNumber(string keyword)
        {
            var regex = RegexProxy.getInstance().getRegex(keyword);

            return(_entry.Where(customer => regex.IsMatch(customer.identifiedcard_id)));
        }
示例#4
0
        private IEnumerable <DTO.Employee> searchByName(string keyword)
        {
            var regex = RegexProxy.getInstance().getRegex(keyword);

            return(_entry.Where(emp => regex.IsMatch(emp.name)));
        }
        private IEnumerable <TourGroup> searchByName(string keyword)
        {
            var regex = RegexProxy.getInstance().getRegex(keyword);

            return(_entry.Where(tour => regex.IsMatch(tour.name)));
        }
        private IEnumerable <Hotel> searchByAddress(string keyword)
        {
            var regex = RegexProxy.getInstance().getRegex(keyword);

            return(_entry.Where(hotel => regex.IsMatch(hotel.address)));
        }
        private IEnumerable <Transport> searchByName(string keyword)
        {
            var regex = RegexProxy.getInstance().getRegex(keyword);

            return(_entry.Where(transport => regex.IsMatch(transport.name)));
        }
示例#8
0
        private IEnumerable <Destination> searchByDestinationName(string keyword)
        {
            var regex = RegexProxy.getInstance().getRegex(keyword);

            return(_entry.Where(destination => regex.IsMatch(destination.city)));
        }