public ActionResult <Contractor> getById(int id) { try { return(Ok(_cs.getByID(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }