public String addOffering ( Offering offering ) { this . offeringsCollection . insertOne ( offering . toDBObject ( ) ) ; this . offeringNames . add ( offering . getName ( ) ) ; return offering . getName ( ) ; }
Add a new offering in the repository