public IActionResult GetMovie(long id) { var movie = _movieServices.GetMovie(id); if (movie == null) { return(NotFound(new NotFoundDto())); } return(Ok(new MovieDetailDto(movie))); }
public ActionResult <MovieResponse> GetMovie(int id) { MovieResponse movieResponse = movieServices.GetMovie(id); if (movieResponse == null) { return(NotFound()); } return(movieResponse); }
public ActionResult GetMovie(int movieId) { try { var resultData = movieServices.GetMovie(movieId); if (resultData == null) { return(NotFound()); } return(Ok(ServicesExtension.SuccessfulResult(resultData))); } catch (Exception exp) { return(new JsonResult(ServicesExtension.ErrorResult(exp))); } }