Beispiel #1
0
 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;
 }
Beispiel #2
0
 public static BaseVenueViewModel ToViewModel(this VenueV version, DateTime viewDate)
 {
     return(version.ToViewModel <BaseVenueViewModel, Venue, VenueV>(viewDate));
 }