iikoFront Api V7 Code Reference
iikoFront Api V7 Code Reference
Resto.Front.Api
OperationArgumentExtensions Class
OperationArgumentExtensions Methods
GetCommonGroupModifiers Method
GetCommonSimpleModifiers Method
GetGroupModifiers Method
GetSimpleModifiers Method
GetSplittableGroupModifiers Method
GetSplittableSimpleModifiers Method
GetUserRoles Method
TryGetOrderExternalDataByKey Method
TryGetProductGroupMenuImage Method
TryGetProductMenuImage Method

# OperationArgumentExtensions GetUserRoles Method

Returns roles available for the user.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    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

#### Reference

OperationArgumentExtensions Class
Resto.Front.Api Namespace