Changed Add Function in PartRepository

Add method now returns the Id of the created part.