public async Task <IActionResult> GetMovieById(int id) { var model = await _moviesService.GetByIdAsync(id); if (model == null) { return(NotFound()); } return(Ok(model)); }