Exemple #1
0
 public IActionResult Post([FromBody] Movie movie)
 {
     try
     {
         return(Ok(_movieService.AddRecommendation(movie)));
     }
     catch (Exception)
     {
         return(StatusCode(StatusCodes.Status400BadRequest, "Unable to add your movie recommendation. Please try after sometime."));
     }
 }