internal virtual TaxableWithholding GetTaxWithholding(WithholdingCode employeeCode, Decimal taxableWages) { return (TaxableWithholdings .Where(d => d.EmployeeCode == employeeCode) .Where(d => d.StartingAmount <= taxableWages) .First(d => taxableWages < d.MaximumWage)); }
internal virtual TaxableWithholding GetTaxWithholding(Decimal taxableWages) { return (TaxableWithholdings .Where(d => d.StartingAmount <= taxableWages) .Where(d => taxableWages < d.MaximumWage) .Select(d => d) .Single()); }
protected virtual TaxableWithholding GetTaxWithholding(Decimal taxableWages) { if (taxableWages < Decimal.Zero) { return new TaxableWithholding { } } ; return (TaxableWithholdings .Where(d => d.StartingAmount <= taxableWages) .Where(d => taxableWages < d.MaximumWage) .Select(d => d) .Single()); }