public async Task <ActionResult <MovieItem> > DeleteMovieItem(CancellationToken cancellationToken, int id)
        {
            MovieItem movieItem = await _context.GetAnItem(cancellationToken, id);

            if (movieItem == null)
            {
                return(NotFound());
            }
            else
            {
                _context.DeleteItem(id);
                return(movieItem);
            }
        }
 public IActionResult Delete(int id)
 {
     _context.DeleteItem(id);
     return(RedirectToAction("List"));
 }