I am trying to get a record from db and comparing with dto for auditing purpose. If i found a record, I am updating record with updated field and setting the primary key id to n