示例#1
0
 /// <summary>
 /// Updates or adds the content item using current user. If content item already exists, it updates it.
 /// NOTE: Set the ParentId property of this item.
 /// If content item doesn't exists, it creates new content item.
 /// </summary>
 public void Save()
 {
     ContentHelper.Save(this);
 }
示例#2
0
 /// <summary>
 /// Updates or adds the content item. If content item already exists, it updates it.
 /// NOTE: Set the ParentId property of this item.
 /// If content item doesn't exists, it creates new content item (in that case contentItem.Id will be set to newly created id).
 /// </summary>
 /// <param name="user">User used for add or updating the content</param>
 /// <param name="publish">If set to <c>true</c> it contentItem will be published as well.</param>
 public void Save(User user, bool publish)
 {
     ContentHelper.Save(this, user, publish);
 }
示例#3
0
 /// <summary>
 /// Updates or adds the content item using current user. If content item already exists, it updates it.
 /// If content item doesn't exists, it creates new content item.
 /// NOTE: Set the ParentId property of this item.
 /// </summary>
 /// <param name="publish">If set to <c>true</c> it contentItem will be published as well.</param>
 public void Save(bool publish)
 {
     ContentHelper.Save(this, publish);
 }