private void Delete() { var item = AllItems.ToList().Find(i => i.Equals(SelectedItemsSelectedItem.ToModel().AccessoryType)); if (item == null) { AllItems.Add(SelectedItemsSelectedItem.AccessoryType.ToModel()); } SelectedItems.Remove(SelectedItemsSelectedItem); SelectedItemsSelectedItem = null; }
public virtual IEnumerable <TE> GetAll() { var r = AllItems.ToList(); return(r); }