private void AddMovieDetailsToAiringMovie(AiringMovie airingMovie) { var movieId = airingMovie.Movie.Id; if (movieId == -1) { return; } var movieLogic = new MovieLogic(new MovieContext(), new RoomContext(), new ApiHelper(), new AiringMovieContext()); airingMovie.Movie = movieLogic.GetMovieById(movieId); }
public TransactionLogic(ITransactionContext context, IAiringMovieContext airingMovieContext, IMovieContext movieContext, IRoomContext roomContext, IApiHelper apiHelper) { _transactionRepo = new TransactionRepo(context); _airingMovieLogic = new AiringMovieLogic(airingMovieContext, roomContext); _movieLogic = new MovieLogic(movieContext, roomContext, apiHelper, airingMovieContext); }