public void RateMovie(int userId, int movieId, int grade) { if (DidUserRateMovie(userId, movieId)) { return; } var rating = new Rating(); rating.Grade = grade; rating.User = _userDAO.Find(userId); rating.Movie = _movieDAO.Find(movieId); _ratingDAO.Create(rating); }