Ejemplo n.º 1
0
 public ActionResult <Board> Create([FromBody] Board newBoards)
 {
     try
     {
         return(Ok(_service.Create(newBoards)));
     }
     catch (System.Exception err)
     {
         return(BadRequest(err.Message));
     }
 }
 public ActionResult <Board> Create([FromBody] Board newBoard)
 {
     try
     {
         return(Ok(_service.Create(newBoard)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }