public virtual void RemoveCabine(params Cabine[] cabines) { foreach (var cabine in cabines) { Cabines.Remove(cabine); } OnPropertyChanged(() => CabinesText); }
public virtual void AddCabine(params Cabine[] cabines) { foreach (var cabine in cabines) { if (Cabines.Any(x => x.Id == cabine.Id)) { continue; } Cabines.Add(cabine); } OnPropertyChanged(() => CabinesText); }