Creating Content Item Pragrammatically

Topics: Core, Customizing Orchard
Feb 4 at 11:28 AM
Hi There

I have created a content Type "UserFavourites" in Orchard that has 2 content picker fields.
Users , Vehicles.

When a user logs in I want them to be able link themselves to a vehicle.

This is done from the front end and content pickers do not work in the front-end UI.

So when a Users clicks a add to favourites button i can post to a custom a Action passing through the Vehicle ContentId and Userguid or id.

How then would I create that content item Programmatically.

Thanks
Stanton
Developer
Feb 4 at 1:03 PM