RoleRepo.Get Method

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

Overloads

Get(int) Gets a Role object from the repository.
Get(string) Gets a Role object from the repository.

Get(int)

Gets a Role object from the repository.

public static Role Get(int id)

Parameters

id
int

Id (primary key).

Returns

Role

Returns an instance of the Role class.

Get(string)

Gets a Role object from the repository.

public static Role Get(string name)

Parameters

name
string

Name of role.

Returns

Role

Returns an instance of the Role class.