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); }
public static BaseCountryViewModel ToViewModel(this CountryV version, DateTime viewDate) { return(version.ToViewModel <BaseCountryViewModel, Country, CountryV>(viewDate)); }