コード例 #1
0
        public static PartRepresentation convertPart(Parts part)
        {
            PartRepresentation convertedPart = new PartRepresentation()
            {
                id               = part.partID,
                mustOrder        = part.mustOrder,
                partIDNumber     = part.partIDNumber,
                partManufacturer = part.partManufacturer,
                partName         = part.partName,
                partPrice        = part.partPrice,
                partQuantity     = part.partQuantity
            };

            return(convertedPart);
        }
コード例 #2
0
        public static PartRepresentation convertPart(Parts part)
        {
            PartRepresentation convertedPart = new PartRepresentation()
            {
                id = part.partID,
                mustOrder = part.mustOrder,
                partIDNumber = part.partIDNumber,
                partManufacturer = part.partManufacturer,
                partName = part.partName,
                partPrice = part.partPrice,
                partQuantity = part.partQuantity
            };

            return convertedPart;
        }