//GetAllBusCategories()-->gets a list of all possible Business Categories
        //!!!!!not used for now!!!!!

        /*public List<ListBoxItem> GetAllBusCategories()
         * {
         *  try
         *  {
         *      List<ListBoxItem> categories = PostgreSQLQueries.GetAllCategories();
         *      return categories;
         *  }
         *  catch (Exception e)
         *  {
         *      Console.WriteLine(e);
         *      throw;
         *  }
         * }*/

        //GetBusinesses()-->gets a list of all Businesses that are withing the 3 given categories (State, City, Zipcode)
        public List <Business> GetBusinesses(State state, City city, String zipcode, string sortby, User u)
        {
            sortby = sortby.Replace(" ", "");
            try
            {
                List <Business> businesses = PostgreSQLQueries.GetBusinessesSortedAttributes(city, state, zipcode, new List <string>(), sortby, new List <string>(), new List <string>(), u);
                return(businesses);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }
 public List <Business> GetBusinessesSortedAttributes(State state, City city, List <String> categories, String zipcode, string sortby, List <String> attributes, List <String> priceAttributes, User u)
 {
     sortby = sortby.Replace(" ", string.Empty);
     try
     {
         List <Business> businesses = PostgreSQLQueries.GetBusinessesSortedAttributes(city, state, zipcode, categories, sortby, attributes, priceAttributes, u);
         return(businesses);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }