예제 #1
0
 public StatusCodeResult AddNewMovie([FromBody] MoviesModel movie)
 {
     if (_moviesRepository.AddNewMovie(movie))
     {
         return(new StatusCodeResult(200));
     }
     return(new StatusCodeResult(400));
 }