public async Task <RequestEngineResult> RequestMovie([FromBody] MovieRequestViewModel movie) { var result = await MovieRequestEngine.RequestMovie(movie); if (result.Result) { var voteResult = await VoteEngine.UpVote(result.RequestId, RequestType.Movie); if (voteResult.IsError) { Log.LogError("Couldn't automatically add the vote for the movie {0} because {1}", movie.TheMovieDbId, voteResult.ErrorMessage); } } return(result); }
public async Task <RequestEngineResult> RequestTv([FromBody] TvRequestViewModel tv) { var result = await TvRequestEngine.RequestTvShow(tv); if (result.Result) { var voteResult = await VoteEngine.UpVote(result.RequestId, RequestType.TvShow); if (voteResult.IsError) { Log.LogError("Couldn't automatically add the vote for the tv {0} because {1}", tv.TvDbId, voteResult.ErrorMessage); } } return(result); }