/// <summary> /// Returns a specific movie by id /// </summary> /// <param name="id"></param> /// <returns>EntertainmentModel.Movie</returns> public EntertainmentModel.Movie GetMovieById(int id) { ServiceLibrary.EntertainmentServiceClient sC = new ServiceLibrary.EntertainmentServiceClient(); var movie = sC.GetMovieById(id); EntertainmentModel.Movie convertedMovie = ConvertToModelMovie(movie); return(convertedMovie); }
/// <summary> /// Inserts a Comment object on a specific movie /// </summary> /// <param name="c"></param> public void InsertComment(Models.Comment c) { ServiceLibrary.EntertainmentServiceClient sC = new ServiceLibrary.EntertainmentServiceClient(); ServiceLibrary.Comment comment = ConvertToWCFComments(c); sC.InsertComment(comment); }