public PaycheckItemViewModel(ProfileViewModel profile, Paycheck model)
            : base(profile, model)
        {
            Total   = model.Total;
            Account = Profile.FindAccount(model.AccountId);

            Due      = new DueInfoViewModel(model.Due);
            Deposits = new PaycheckDepositsViewModel(profile, model.Deposits);
        }
Ejemplo n.º 2
0
        public SimulationPaycheck(DateTime start, Paycheck paycheck)
        {
            _dueDates = new SimulationDueInfo(start, paycheck.Due);
            _deposits = paycheck.Deposits.Select(d => new SimulationPaycheckDeposit(d)).ToList();

            Id        = paycheck.Id;
            AccountId = paycheck.AccountId;
            Name      = paycheck.Name;
            Total     = paycheck.Total;
        }