Click or drag to resize

OperationArgumentExtensions.GetUserRoles Method

Returns roles available for the user.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
public static IReadOnlyList<IRole> GetUserRoles(
	this IUser user
)

Parameters

user
Type: Resto.Front.Api.Data.Security.IUser
User to get his roles.

Return Value

Type: IReadOnlyList<IRole>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IUser. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also