public ActionResult <Contractor> Update([FromBody] Contractor contractor, int id) { try { contractor.Id = id; return(Ok(_service.Update(contractor))); } catch (System.Exception error) { return(BadRequest(error.Message)); } }
public ActionResult <Contractor> Update([FromBody] Contractor contractor, int id) { try { contractor.Id = id; return(Ok(_service.Update(contractor))); } catch (System.Exception error) { return(BadRequest(error.Message)); } }