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