public IActionResult Get(int id) { var movie = _store.GetById(id); if (movie == null) { return(NotFound()); } return(new ObjectResult(movie)); }
public IActionResult Details(int id) { var model = _movies.GetById(id); if (model == null) { return(NotFound()); } return(View(model)); }