RoleService.Get Method

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

Overloads

Get(IEnumerable, bool) Gets a list of Role objects from the repository.
Get(int, bool) Gets a Role object from the repository.
Get(string, bool) Gets a Role object from the repository.

Get(IEnumerable, bool)

Gets a list of Role objects from the repository.

public static IEnumerable<Role> Get(IEnumerable<int> ids, bool filter = true)

Parameters

ids
System.Collections.Generic.IEnumerable

Ids of the roles to get.

filter
bool

Returns

System.Collections.Generic.IEnumerable

Returns a list of Role objects.

Get(int, bool)

Gets a Role object from the repository.

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

Parameters

id
int

Id of the Role.

filter
bool

Returns

Role

Returns an instance of the Role class.

Get(string, bool)

Gets a Role object from the repository.

public static Role Get(string rolename, bool filter = true)

Parameters

rolename
string

Rolename of the Role.

filter
bool

Returns

Role

Returns an instance of the Role class.