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