public ActionResult <string> DeleteBoards(string id) { try { return(Ok(_service.Delete(id))); } catch (System.Exception err) { return(BadRequest(err.Message)); } }
public ActionResult <Board> Delete(int id) { try { return(Ok(_service.Delete(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }