コード例 #1
0
        private async Task DeleteMovie(Movie movie)
        {
            await Js.MyFunction("Requested Movie delete");

            var result = await Js.Confirm($"Are you sure you want to delete {movie.Title}?");

            if (result)
            {
                await MovieRepository.DeleteMovie(movie.Id);

                Movies.Remove(movie);
            }
        }