public void AddInteresse(string interesse) { if (!InteressesOpslag.Split(';').Contains(interesse)) { if (this.InteressesOpslag == "") { this.InteressesOpslag += interesse; } else { this.InteressesOpslag += ";" + interesse; } } }
public void UpdateIntressesFromOpslag() { string[] array = InteressesOpslag.Split(';'); this.Interesses = new List <string>(array).Where(x => x != "").ToList(); }