UserService.Get Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Overloads

Get(int, bool) Gets a User object from the repository.
Get(string, bool) Gets the User with the specified username.
Get(string, string, bool) Gets the User with the specified username/email and password.

Get(int, bool)

Gets a User object from the repository.

public static User Get(int id, bool filter = true)

Parameters

id
int

Id (unique identifier).

filter
bool

Returns

User

Returns an instance of the User class.

Get(string, bool)

Gets the User with the specified username.

public static User Get(string username, bool filter = true)

Parameters

username
string

The username of the user.

filter
bool

Returns

User

Returns an instance of the User class.

Get(string, string, bool)

Gets the User with the specified username/email and password.

public static User Get(string username, string password, bool filter = true)

Parameters

username
string

The username or email of the User. Not case sensitive.

password
string

The password for the User. This is case sensitive.

filter
bool

Returns

User

Returns an instance of the User class.