public bool AddReview(ReviewerInfo reviewer)
        {
            try
            {
                _context.ReviewerInfoes.Add(reviewer);
                _context.SaveChanges();
            }
            catch
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
        public bool AddRestaurant(RestaurantInfo restaurant)
        {
            try
            {
                _context.RestaurantInfoes.Add(restaurant);
                _context.SaveChanges();
            }
            catch
            {
                return(false);
            }

            return(true);
        }