public ActionResult <Contractor> Get(int id) { try { return(Ok(_service.FindById(id))); } catch (System.Exception error) { return(BadRequest(error.Message)); } }