RoleService.Get Method

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

Overloads

Get(IEnumerable, Boolean) Gets a list of Role objects from the repository.
Get(Int32, Boolean) Gets a Role object from the repository.
Get(String, Boolean) Gets a Role object from the repository.

Get(IEnumerable, Boolean)

Gets a list of Role objects from the repository.

public static IEnumerable Get(IEnumerable ids, bool filter = true)

Parameters

ids
System.Collections.Generic.IEnumerable{System.Int32}
filter
System.Boolean

Returns

System.Collections.Generic.IEnumerable{Weavy.Core.Models.Role}

Returns a list of objects.

Get(Int32, Boolean)

Gets a Role object from the repository.

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

Parameters

id
System.Int32
filter
System.Boolean

Returns

System.Collections.Generic.IEnumerable{Weavy.Core.Models.Role}

Returns an instance of the class.

Get(String, Boolean)

Gets a Role object from the repository.

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

Parameters

rolename
System.String
filter
System.Boolean

Returns

System.Collections.Generic.IEnumerable{Weavy.Core.Models.Role}

Returns an instance of the class.