예제 #1
0
        public void DeleteMovie(string userName, UserMovie movie)
        {
            _userMovieRepo.DeleteById(movie.Id);

            UserAction actionToAdd = new UserAction(userName, movie);
            actionToAdd.Action = Action.DELETE_MOVIE;
            AddUserAction(actionToAdd);
        }
예제 #2
0
 public void UpdateMovie(UserMovie userMovie)
 {
     user_movie userMovieToUpdate = Mapper.Map<UserMovie, user_movie>(userMovie);
     _userMovieRepo.Update(userMovieToUpdate);
 }