public static async Task <ILocations[]> GetLocations(string provider, string query) { switch (provider.ToLower()) { case "hemnet": { return(await HemnetPricer.GetAreaIdStatic(query)); } case "booli": { return(await BooliPricer.GetAreaIdStatic(query)); } } return(new List <EmptyLocations>().ToArray()); }
public async Task <ILocations[]> GetAreaId(string query) { return(await BooliPricer.GetAreaIdStatic(query)); }