public static OrganisationV SetData(this OrganisationV entity, OrganisationEditorViewModel viewModel) { entity.OrganisationName = viewModel.OrganisationName; entity.OrganisationDescription = viewModel.OrganisationDescription; entity.ParentOrganisationGuid = viewModel.ParentOrganisationGuid; entity.CountryGuid = viewModel.CountryGuid; entity.WebAddress = viewModel.WebAddress; return(entity); }
public static BaseOrganisationViewModel ToViewModel(this OrganisationV version, DateTime viewDate) { return(version.ToViewModel <BaseOrganisationViewModel, Organisation, OrganisationV>(viewDate)); }