public async Task <IHttpActionResult> Get(int id) { var poster = await _posterService.GetAsync(id).ConfigureAwait(false); if (poster == null) { return(BadRequest()); } return(Ok(MappingConfig.Mapper().Map <PosterOutputDTO>(poster))); }
private async Task <string> FixPosterAddress(Movie movie) { return(await _posterService.GetAsync(movie.Title, movie.Year)); }