public ActionResult <Cliente> Put(int id, [FromBody] Cliente value) { if (id < 1 || id != value.Id) { return(BadRequest("Parameter Id and customer ID must be the same")); } return(Ok(_Clientes.Actualizar(value))); }