Esempio n. 1
0
        public static bool AddMovieRating(Movie movie, Customer user, int rating)
        {
            String q = "insert into movie_rating (mid, cid, rating) values (@mid, @cid, @rating);";

            return(MovieRatingQuery(q, movie, user, rating));
        }
Esempio n. 2
0
        public static bool EditMovieRating(Movie movie, Customer user, int rating)
        {
            String q = "UPDATE movie_rating SET rating=@rating where mid=@mid and cid=@cid";

            return(MovieRatingQuery(q, movie, user, rating));
        }