public static ViewModels.PersonAircraftType GetDto(Models.ViewPersonAircraftType entity) { var result = new ViewModels.PersonAircraftType(); FillDto(entity, result); return(result); }
public static void Fill(Models.PersonAircraftType entity, ViewModels.PersonAircraftType personaircrafttype) { entity.Id = personaircrafttype.Id; entity.AircraftTypeId = personaircrafttype.AircraftTypeId; entity.PersonId = personaircrafttype.PersonId; entity.IsActive = personaircrafttype.IsActive; entity.DateLimitBegin = personaircrafttype.DateLimitBegin; entity.DateLimitEnd = personaircrafttype.DateLimitEnd; entity.Remark = personaircrafttype.Remark; }
public static void FillDto(Models.ViewPersonAircraftType entity, ViewModels.PersonAircraftType viewpersonaircrafttype) { viewpersonaircrafttype.AircraftType = entity.AircraftType; viewpersonaircrafttype.ManufacturerId = entity.ManufacturerId; viewpersonaircrafttype.Manufacturer = entity.Manufacturer; viewpersonaircrafttype.Id = entity.Id; viewpersonaircrafttype.AircraftTypeId = entity.AircraftTypeId; viewpersonaircrafttype.PersonId = entity.PersonId; viewpersonaircrafttype.IsActive = entity.IsActive; viewpersonaircrafttype.DateLimitBegin = entity.DateLimitBegin; viewpersonaircrafttype.DateLimitEnd = entity.DateLimitEnd; viewpersonaircrafttype.Remark = entity.Remark; }