Example #1
0
 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));
     }
 }