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); }
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; }