ContentController Class


public class ContentController : WeavyController
System.Object → WeavyControllerContentController




Comments(Int32) Get comments for the specified content item as partial view.
Delete(Int32) Permanently delete content item.
DeleteVersion(Int32, Int64) Permanently delete a content version.
Drafts() Return partial view for displaying drafts in user drawer.
Edit(Int32, Boolean) Edit specified item.
Followers(Int32) Get followers for the specified content as a partial view.
Get(Int32, Query, Nullable) Display specified content item.
GetVersion(Int32, Int64) Display a specific version of a content item.
Insert(Int32, Guid, String, IEnumerable) Insert a content item as a child of another content item.
InsertFile(Nullable, Nullable, String, String) Insert a new file.
InsertRoot(Int32, Guid, String, IEnumerable) Insert content into the root of the specified app.
Move(Int32, MoveContentModel) Move content.
MoveModal(Int32) Get partial for move content modal.
New(Int32, Guid) Display form for adding a content item.
NewRoot(Int32, Guid) Display form for adding content to the root of an app.
Restore(Int32) Restore the specified content item i.e. clears the IsTrashed flag.
Revert(Int32, Int64) Revert to previous version of content item.
Subscribers(Int32) Get subscribers, i.e. people that follow the content and will get notified on changes.
Trash(Int32) Trash the specified content, i.e. sets the IsTrashed flag.
Update(Int32, String, IEnumerable) Update specified content item.
Versions(Int32) Display versions for specified content item.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.