public void UpdateContract(GPContract contract) { GPContract existing; if (_contracts.TryGetValue(contract.Id, out existing)) { contract.PatientList = existing.PatientList; _contracts[contract.Id] = contract; } }
private void HandleContractUpdated(GPContract contract, IDictionary <string, object> properties) { WriteLine("Received ContractUpdated"); _contractRepository.UpdateContract(contract); }
public void SaveContract(GPContract contract) { _contracts.Add(contract.Id, contract); }