コード例 #1
0
 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));
 }
コード例 #2
0
 internal virtual TaxableWithholding GetTaxWithholding(Decimal taxableWages)
 {
     return
         (TaxableWithholdings
          .Where(d => d.StartingAmount <= taxableWages)
          .Where(d => taxableWages < d.MaximumWage)
          .Select(d => d)
          .Single());
 }
コード例 #3
0
        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());
        }