using System.Collections.Generic; using BS.Shared.DataContracts; namespace BeWo.ViewModel.ListViewModel { public class ContractListVM : AbstractDCListMapperVM { private IList _PossibleEmploymentTypes; private IList _AllContractTypes; private IList _AllHourlyRateCostRatePeriods; public ContractListVM(IList allEmploymentTypes, List allContractTypes, List allHourlyRateCostRatePeriods, List pDCs) : base(pDCs) { this._PossibleEmploymentTypes = allEmploymentTypes; this._AllContractTypes = allContractTypes; this._AllHourlyRateCostRatePeriods = allHourlyRateCostRatePeriods; } protected override ContractVM CreateVM(ContractDC pDC) { ContractVM vm = base.CreateVM(pDC); vm.PossibleEmploymentTypes = _PossibleEmploymentTypes; vm.AllContractTypes = _AllContractTypes; vm.AllHourlyRateCostRatePeriods = _AllHourlyRateCostRatePeriods; return vm; } } }