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)));
        }
Beispiel #2
0
 private async Task <string> FixPosterAddress(Movie movie)
 {
     return(await _posterService.GetAsync(movie.Title, movie.Year));
 }