public async Task <IHttpActionResult> GetMovieAsync(string movieName) { await Task.Yield(); var movie = movieLogic.GetMovie(movieName); if (movie == null) { return(Content(HttpStatusCode.NotFound, $"No se encuentra la pelicula solicitada")); } var ret = new MovieModel(movie); return(Ok(ret)); }
public async Task <IHttpActionResult> GetRatingAsync(string movieName) { await Task.Yield(); var movie = oldRemotingService.GetMovie(movieName); if (movie == null) { return(Content(HttpStatusCode.NotFound, $"No se encuentra la pelicula solicitada")); } var ret = new MovieSimpleModelOUT(movie); return(Ok(ret.Rating)); }