Пример #1
0
        public static CountryV SetData(this CountryV entity, CountryEditorViewModel viewModel)
        {
            entity.HeaderKey     = viewModel.HeaderKey;
            entity.CountryName   = viewModel.CountryName;
            entity.ResourceGuid  = viewModel.ResourceGuid;
            entity.EffectiveFrom = viewModel.EffectiveFrom;
            entity.EffectiveTo   = viewModel.EffectiveTo;

            return(entity);
        }
Пример #2
0
 public static BaseCountryViewModel ToViewModel(this CountryV version, DateTime viewDate)
 {
     return(version.ToViewModel <BaseCountryViewModel, Country, CountryV>(viewDate));
 }