public override IEditModel <EduProgramProfileFormYearInfo> Create(
            EduProgramProfileFormYearInfo model, ViewModelContext context)
        {
            var viewModel = new EduProgramProfileFormYearEditModel();

            CopyCstor.Copy <IEduProgramProfileFormYearWritable> (model, viewModel);
            CopyCstor.Copy <IPublishableEntityWritable> (model, viewModel);
            viewModel.EduFormViewModel = new EduFormViewModel(model.EduForm, context);
            viewModel.YearString       = model.Year.Year.ToString();
            viewModel.Context          = context;

            return(viewModel);
        }
        public override IEditModel <EduProgramProfileFormYearInfo> Create(
            EduProgramProfileFormYearInfo model, ViewModelContext context)
        {
            var viewModel = new EduProgramProfileFormYearEditModel();

            CopyCstor.Copy <IEduProgramProfileFormYearWritable> (model, viewModel);
            CopyCstor.Copy <IPublishableEntityWritable> (model, viewModel);
            viewModel.EduFormViewModel = new EduFormViewModel(model.EduForm, context);
            viewModel.HasEduVolume     = model.EduVolume != null;
            viewModel.HasContingent    = model.Contingent != null;
            viewModel.Context          = context;

            return(viewModel);
        }