// GET api/<controller>
        public Taxcard Get(string id)
        {
            var taxcard = new Taxcard {TaxPercentage = 34M, TaxcardId = id};
            return taxcard;

            //GetEmployerQuery query = new GetEmployerQuery("foo");
            //return query.Execute();
        }
        public SalaryCalculationResults CalculateSalary(Taxcard taxCard, decimal grossSalary)
        {
            if (taxCard == null)
            {
                throw new SalaryCalculationException("Salary calculation requires a valid tax card.");
            }

            decimal taxPercentage = taxCard.TaxPercentage;
            decimal tax = grossSalary*(taxPercentage/100);
            decimal netSalary = grossSalary - tax;

            var results = new SalaryCalculationResults();
            results.NetSalary = netSalary;
            results.Tax = tax;

            return results;
        }