public PaySlipResultViewModel(PaySlip paySlip) { Name = paySlip.Name; PayPeriod = paySlip.PayPeriod; GrossIncome = paySlip.GrossIncome; IncomeTax = paySlip.IncomeTax; NetIncome = paySlip.NetIncome; Super = paySlip.Super; }
public bool PaySlipEquals(PaySlip obj) { if (this.Name == obj.Name && this.PayPeriod == obj.PayPeriod && this.GrossIncome == obj.GrossIncome && this.IncomeTax == obj.IncomeTax && this.NetIncome == obj.NetIncome && this.Super == obj.Super ) { return(true); } return(false); }