using System.Collections.Generic;

using BS.Shared.DataContracts;

namespace BeWo.ViewModel.ListViewModel
{
    public class ContractListVM : AbstractDCListMapperVM<ContractDC, ContractVM>
    {
        private IList<EmploymentTypeDC> _PossibleEmploymentTypes;

        public ContractListVM(IList<EmploymentTypeDC> allEmploymentTypes, List<ContractDC> pDCs)
            : base(pDCs)
        {
            this._PossibleEmploymentTypes = allEmploymentTypes;
        }

        protected override ContractVM CreateVM(ContractDC pDC)
        {
            ContractVM vm = base.CreateVM(pDC);

            vm.PossibleEmploymentTypes = _PossibleEmploymentTypes;

            return vm;
        }
    }
}