Create a news item with the Fluent API
Use the code example below to create a news item and to set its Title and Content with the Fluent API.
In the example below, you perform the following:
- Set the properties of the news item by calling the Do method of the facade.
- Set the state of the news item to published.
- Save the changes to the facade.
Create a news item with the Fluent API