Exemple #1
0
 public IActionResult Post(ComentarioDTO comentario)
 {
     try
     {
         return(new JsonResult(service.CrearComentario(comentario))
         {
             StatusCode = 201
         });
     }
     catch (System.Exception e)
     {
         return(BadRequest(e.Message));
     }
 }