public ActionResult WatchMovie() { var watchMovieInteraction = new WatchMovieInteraction(Tracker.Current.Contact); watchMovieInteraction.ExecuteInteraction(); var viewModel = new WatchMovieViewModel(Tracker.Current.Contact); return(View(ProjectConst.ControllerViews.WatchMovie, viewModel)); }
public async Task WatchAMovieAsync() { var watchMovieInteration = new WatchMovieInteraction(Identifier); var arr = new[] { @" __ __ _ ", @"| \/ | _____ _(_) ___ ", @"| |\/| |/ _ \ \ / / |/ _ \", @"| | | | (_) \ V /| | __/", @"|_| |_|\___/ \_/ |_|\___|", }; DrawStepTitle(arr); await watchMovieInteration.ExecuteInteraction(); var reporter = new DataReporter(); var knownDataHelper = new KnownDataHelper(); KnownDataXConnect knownData = await knownDataHelper.GetKnownDataByIdentifierViaXConnect(Identifier); if (knownData?.PersonalInformationDetails != null) { System.Console.WriteLine("Enjoy your movie, " + knownData.PersonalInformationDetails.FirstName + "!"); System.Console.WriteLine("Since you're a loyalty card holder, we'll take payment for your ticket now."); } else { System.Console.WriteLine("Details was null"); } // Initialize a client using the validate configuration if (watchMovieInteration.XConnectContact != null) { DrawTriggerMessage("You scanned your ticket - the bar code has your loyalty card information embedded in it."); } System.Console.ReadKey(); }