public static void SetData(this VenueV entityV, VenueEditorViewModel viewModel) { entityV.VenueName = viewModel.VenueName; entityV.Capacity = viewModel.Capacity; entityV.Address1 = viewModel.Address1; entityV.Address2 = viewModel.Address2; entityV.Address3 = viewModel.Address3; entityV.Address4 = viewModel.Address4; entityV.PostCode = viewModel.PostCode; entityV.CountryGuid = viewModel.CountryGuid; }
public static BaseVenueViewModel ToViewModel(this VenueV version, DateTime viewDate) { return(version.ToViewModel <BaseVenueViewModel, Venue, VenueV>(viewDate)); }