Ejemplo n.º 1
0
 public ActionResult <Board> GetById(string boardsId)
 {
     try
     {
         return(Ok(_service.GetById(boardsId)));
     }
     catch (System.Exception err)
     {
         return(BadRequest(err.Message));
     }
 }
 public ActionResult <Board> GetAll(int id)
 {
     try
     {
         return(Ok(_service.GetById(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }