RoleService.Get Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Overloads
Get(IEnumerable |
Gets a list of Role objects from the repository. |
Get(int, bool, bool) | Gets a Role object from the repository. |
Get(string, bool, bool) | Gets a Role object from the repository. |
Get(IEnumerable, bool, bool)
Gets a list of Role objects from the repository.
public static IEnumerable<Role> Get(IEnumerable<int> ids, bool sudo = false, bool trashed = false)
Parameters
- ids
- System.Collections.Generic.IEnumerable
Ids of the roles to get.
- sudo
- bool
true
to perform action as super user, otherwise false
.
- trashed
- bool
true
to return trashed roles, otherwise false
.
Returns
System.Collections.Generic.IEnumerable
Returns a list of Role objects.
Get(int, bool, bool)
Gets a Role object from the repository.
public static Role Get(int id, bool sudo = false, bool trashed = false)
Parameters
- id
- int
Id of the Role.
- sudo
- bool
true
to perform action as super user, otherwise false
.
- trashed
- bool
true
to return Role even if trashed, otherwise false
.
Returns
Get(string, bool, bool)
Gets a Role object from the repository.
public static Role Get(string rolename, bool sudo = false, bool trashed = false)
Parameters
- rolename
- string
Rolename of the Role.
- sudo
- bool
true
to perform action as super user, otherwise false
.
- trashed
- bool
true
to return Role even if trashed, otherwise false
.