public IActionResult Get(int id)
        {
            var movie = _store.GetById(id);

            if (movie == null)
            {
                return(NotFound());
            }
            return(new ObjectResult(movie));
        }
Exemple #2
0
        public IActionResult Details(int id)
        {
            var model = _movies.GetById(id);

            if (model == null)
            {
                return(NotFound());
            }
            return(View(model));
        }