// GET: Films/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var film = await _film.GetFilm(id); if (film == null) { return(NotFound()); } return(View(film)); }
public async Task <IActionResult> GetFilm(int?Id) { if (Id == null) { return(BadRequest()); } Film data = await _Film.GetFilm(Id); if (data == null) { return(NotFound()); } return(Ok(data)); }