public void Remove(int id)
        {
            RestaurantInfo item = Get(id);

            if (item != null)
            {
                restaurants.Remove(item);
            }
        }
        public void IncrementReview(int id)
        {
            RestaurantInfo item = Get(id);

            if (item != null)
            {
                item.Reviews += 1;
            }
        }
        public bool Update(RestaurantInfo item)
        {
            RestaurantInfo udpItem = Get(item.Id);

            if (udpItem != null)
            {
                udpItem.Location = item.Location;
                return(true);
            }
            else
            {
                return(false);
            }
        }
        public void SetRate(int id, int rating)
        {
            RestaurantInfo item = Get(id);

            if (item != null)
            {
                if (rating < 1)
                {
                    rating = 1;
                }
                else if (rating > 5)
                {
                    rating = 5;
                }
                item.Rating = rating;
            }
        }
 public RestaurantInfo Add(RestaurantInfo item)
 {
     restaurants.Add(item);
     return(item);
 }