PostController Class

Namespace:
Weavy.Web.Controllers
Assembly:
Weavy.Web.dll

public class PostController : WeavyController
Inheritance:
System.Object → WeavyControllerPostController

Constructors

PostController()

Methods

Comments(int) Get comments for the specified post as partial view.
EditModal(int) Get partial for edit post modal.
Feedback(int) Get feedback (likes, comments) for the specified post as partial view.
Get(int) Display details for the specified post.
Insert(int, PostInsertModel) Insert a post into the specified app.
Likes(int) Get likes details for the specified post as partial view.
Move(int, PostMoveModel) Move post.
MoveModal(int) Get partial for move post modal.
Pin(int) Pin a post.
Poll(int, int) Vote on a poll.
Unpin(int) Unpin a post.
Update(int, PostUpdateModel) Update a post.
Votes(int, int) Get votes details for the specified post and option as partial view.

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, Formatting?, 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.