public void DeleteMovie(string userName, UserMovie movie) { _userMovieRepo.DeleteById(movie.Id); UserAction actionToAdd = new UserAction(userName, movie); actionToAdd.Action = Action.DELETE_MOVIE; AddUserAction(actionToAdd); }
public void UpdateMovie(UserMovie userMovie) { user_movie userMovieToUpdate = Mapper.Map<UserMovie, user_movie>(userMovie); _userMovieRepo.Update(userMovieToUpdate); }