public MovieDto Get(int id) { var movie = this.moviesRepository.GetMovie(id); var result = NotSoAutoMapper.Map(movie); return(AddLinks(result, movie.RentedBy)); }
public MovieDto Get(int id) { var movie = this.moviesRepository.GetMovie(id); return(NotSoAutoMapper.Map(movie)); }
public IActionResult Get(int id) { var movie = this.moviesRepository.GetMovie(id); return(this.Ok(NotSoAutoMapper.Map(movie))); }