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:
  1.  Define the language culture of the news item.
  2. Set the properties of the news item by calling the Do method of the facade.
  3. Set the state of the news item to published.
  4. Save the changes to the facade. 

Create a news item with the Fluent API

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?