internal static string GetLookupLocation(ISearchCriteria criteria)
        {
            string result = string.Empty;

            switch (criteria.Depth)
            {
            case SearchDepth.State:
                result = $"{criteria.StateCode()}";
                break;

            case SearchDepth.City:
                result = $"{criteria.City()}, {criteria.StateCode()}";
                break;

            case SearchDepth.Zip:
                result = $"{criteria.Zip()}, {criteria.StateCode()}";
                break;
            }
            return(result);
        }
예제 #2
0
 public static string SearchUrl(ISearchCriteria criteria, SearchType searchtype)
 {
     return(searchtype.FluentUrl().State(criteria.StateCode()).Zip(criteria.Zip())
            .City(criteria.City())
            .Url());
 }