public static RegexProxy getInstance() { if (instance == null) { instance = new RegexProxy(); } return(instance); }
private IEnumerable <DTO.Customer> searchByPhone(string keyword) { var regex = RegexProxy.getInstance().getRegex(keyword); return(_entry.Where(customer => regex.IsMatch(customer.phone))); }
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))); }
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))); }
private IEnumerable <Destination> searchByDestinationName(string keyword) { var regex = RegexProxy.getInstance().getRegex(keyword); return(_entry.Where(destination => regex.IsMatch(destination.city))); }