public ActionResult <IEnumerable <Board> > GetAll() { try { return(Ok(_bservice.GetAll())); } catch (System.Exception err) { return(BadRequest(err.Message)); } }
public ActionResult <Board> Get() { try { return(Ok(_service.GetAll())); } catch (Exception e) { return(BadRequest(e.Message)); } }