PeopleController Class

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

Controller for People.

public class PeopleController : WeavyController
Inheritance:
System.Object → WeavyControllerPeopleController

Constructors

PeopleController()

Methods

EditAccount(int) Display form for editing the user account for a user.
EditProfile(int) Display form for editing the user profile for a different user.
EditSettings(int) Display form for editing the user settings for a user.
Get(int) Display the profile of the specified user.
GetByUsername(string) Display the profile of the specified user.
Index(UserQuery, string) Display list of users.
Insert(CreateAccountModel) Insert new user.
Invite() Display form for inviting users.
Invite(InviteUsersModel) Invite user.
New() Display form for creating user.
Pending(InviteQuery) Display list of pending invites and sign-ups.
Restore(int) Restores the user e.i. clears the IsTrashed flag.
Trash(int) Trashes the user e.i. sets the IsTrashed flag.
UpdateAccount(int, EditAccountModel) Updates account info for a user.
UpdateInvite(int, string) Update invite/sign-up.
UpdateProfile(int) Updates profile for a different user.
UpdateSettings(int, UserSettings) Updates settings for a user.
Welcome(int, string) Send welcome email with username and password.

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.