public void AddFixedCostAllocation() { FixedCostAllocationList.Add(new FixedCostAllocation() { Name = "Neuer Schlüssel" }); SelectedFixedCostAllocation = FixedCostAllocationList.Last(x => x.Name == "Neuer Schlüssel"); }
public void DeleteFixedCostAllocation() { if (SelectedFixedCostAllocation.FixedCostAllocationId != 0) { FixedCostAllocations.Delete(SelectedFixedCostAllocation.FixedCostAllocationId); } FixedCostAllocationList.Remove(SelectedFixedCostAllocation); }