public Deductions ComputeTaxes() { var input = Appcontext.UserInput; Incoming = input.HoursRate * input.HoursWorked; var d = new Deductions() { Employeelocation = input.EmployeesLocation, GrossAmount = Incoming, IncomeTax = CalculateincomeTaxRate(), UniversalSocialCharge = CalculeteUniversalSocialCharge(), Pension = CompulsoryPension(), NetAmount = 0 }; d.NetAmount = d.GrossAmount - d.IncomeTax - d.UniversalSocialCharge - d.Pension; return(d); }
private void HandleOutPut(Deductions deductions) { Deductions = deductions; HandleResponse(); }