Exemplo n.º 1
0
        /// <summary>Stops playing</summary>
        public void Pause()
        {
            if (!isPlaying)
            {
                return;
            }
            isPlaying = false;
            timer.Stop();

            StopPlaying?.Invoke(this, new EventArgs());
        }
        public IActionResult OnGet(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Movie = _context.Movies.Find(id);

            if (Movie == null)
            {
                return(NotFound());
            }


            StopPlaying         = new StopPlaying();
            StopPlaying.MovieId = Movie.Id;
            return(Page());
        }