//udpate merely updates the repository a commit is required //to commit it to the db... private bool Update(WarehouseCode item) { _serviceAgent.UpdateWarehouseCodeRepository(item); Dirty = true; if (CommitIsAllowed()) { AllowCommit = true; } else { AllowCommit = false; } return(AllowCommit); }