private void DeleteItem() { if (SelectedItem is null) { return; } TaxTypes.Delete(SelectedItem.TaxTypeId); TaxTypeList.Remove(SelectedItem); }
public TaxType GetTaxTypeById(int taxTypeId) { return(TaxTypeList.SingleOrDefault(x => x.TaxTypeId == taxTypeId)); }