Ejemplo n.º 1
0
 public IActionResult AddGenre([FromBody] Genres genre)
 {
     try
     {
         _movies.AddGenre(genre);
         return(Ok());
     }
     catch (Exception)
     {
         return(StatusCode(500));
     }
 }