public static AircraftRegistrationOperatorPerson ToEntity(this AircraftRegistrationOperatorPersonViewModel model) { if (model == null) { return(null); } AircraftRegistrationOperatorPerson entity = new AircraftRegistrationOperatorPerson { Id = model.Id, RegistrationId = model.RegistrationId, Identifier = model.Identifier, Names = model.Names, }; return(entity); }
public static AircraftRegistrationOperatorPersonViewModel ToViewModel(this AircraftRegistrationOperatorPerson entity) { if (entity == null) { return(null); } AircraftRegistrationOperatorPersonViewModel model = new AircraftRegistrationOperatorPersonViewModel { Id = entity.Id, RegistrationId = entity.RegistrationId, Identifier = entity.Identifier, Names = entity.Names, }; return(model); }