Example #1
0
        public static ViewModels.PersonAircraftType GetDto(Models.ViewPersonAircraftType entity)
        {
            var result = new ViewModels.PersonAircraftType();

            FillDto(entity, result);
            return(result);
        }
Example #2
0
 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;
 }
Example #3
0
 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;
 }