private void DeleteHealthInsurance() { if (SelectedHealthInsurance == null) { return; } if (SelectedHealthInsurance.HealthInsuranceId == 0) { HealthInsuranceList.Remove(SelectedHealthInsurance); SelectedHealthInsurance = null; return; } HealthInsurances.Delete(SelectedHealthInsurance.HealthInsuranceId); HealthInsuranceList.Remove(SelectedHealthInsurance); SelectedHealthInsurance = null; }
private void NewHealthInsurance() { SelectedHealthInsurance = new HealthInsurance(); HealthInsuranceList.Add(SelectedHealthInsurance); }