public ActionResult <Contractor> GetById(int id) { try { return(Ok(_service.GetById(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Contractor> GetById(int id) { try { return(Ok(_contractorsService.GetById(id))); } catch (System.Exception err) { return(BadRequest(err.Message)); } }