예제 #1
0
 private ParcelTypes mapToEntity(ParcelType obj, ParcelTypes entity)
 {
     entity.Id        = obj.Id;
     entity.Supported = obj.Supported;
     entity.Fee       = obj.Fee;
     entity.Type      = obj.Type;
     return(entity);
 }
예제 #2
0
        private ParcelType mapFromEntity(ParcelTypes entity)
        {
            ParcelType obj = new ParcelType();

            obj.Id        = entity.Id;
            obj.Supported = entity.Supported;
            obj.Fee       = entity.Fee;
            obj.Type      = entity.Type;
            return(obj);
        }