SpaceController Class


Controller for managing spaces.

public class SpaceController : WeavyController
System.Object → WeavyControllerSpaceController




Admin(Int32) Make the current user admin in the space.
ApproveMember(Int32, Int32) Approve request to join a space.
Archive(Int32) Archive a space.
Delete(Int32) Permanently delete the space.
DenyMember(Int32, Int32) Deny request to join a space.
Edit(Int32) Display form for editing a space.
Follow(Int32) Follow a Space.
Get(Int32, Query) Display home page of the specified space.
Index(SpaceQuery, String) Display list of spaces.
Insert(Space, Boolean) Create a new space.
InsertMembers(Int32, IEnumerable) Add member(s) to the space.
Join(Int32) Current user Joins a space.
Leave(Int32) Current user leaves a space.
Members(Int32, String, Query) Display the list of members in the space.
New() Display form for creating a new space.
RemoveInvite(Int32, Int32)
RemoveMember(Int32, Int32) Remove member from space
Restore(Int32) Restores a Space.
Settings(Int32) Edit the space settings.
Star(Int32) Star a space.
Trash(Int32) Trash a space.
Unarchive(Int32) Restores a Space from the archive.
Unfollow(Int32) Unfollow an Space.
Unstar(Int32) Unstar a Space.
Update(Int32, String) Update a space.
UpdateInvite(Int32, Int32, String) Update an invite.
UpdateMember(Int32, Int32, Access) Updates the permission of the specified member.
UpdateSettings(Int32, Nullable) Update a space.

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.