public PaycheckItemViewModel(ProfileViewModel profile) : base(profile) { Account = Profile.Accounts.First(); Due = new DueInfoViewModel(); Deposits = new PaycheckDepositsViewModel(profile); }
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); }