Table of Contents

Interface IUserRoleRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public interface IUserRoleRepository

Methods

AddUserRole(UserRole)

UserRole AddUserRole(UserRole userRole)

Parameters

userRole UserRole

Returns

UserRole

DeleteUserRole(int)

void DeleteUserRole(int userRoleId)

Parameters

userRoleId int

DeleteUserRoles(int)

void DeleteUserRoles(int userId)

Parameters

userId int

GetUserRole(int)

UserRole GetUserRole(int userRoleId)

Parameters

userRoleId int

Returns

UserRole

GetUserRole(int, bool)

UserRole GetUserRole(int userRoleId, bool tracking)

Parameters

userRoleId int
tracking bool

Returns

UserRole

GetUserRole(int, int)

UserRole GetUserRole(int userId, int roleId)

Parameters

userId int
roleId int

Returns

UserRole

GetUserRole(int, int, bool)

UserRole GetUserRole(int userId, int roleId, bool tracking)

Parameters

userId int
roleId int
tracking bool

Returns

UserRole

GetUserRoles(int)

IEnumerable<UserRole> GetUserRoles(int siteId)

Parameters

siteId int

Returns

IEnumerable<UserRole>

GetUserRoles(int, int)

IEnumerable<UserRole> GetUserRoles(int userId, int siteId)

Parameters

userId int
siteId int

Returns

IEnumerable<UserRole>

GetUserRoles(string, int)

IEnumerable<UserRole> GetUserRoles(string roleName, int siteId)

Parameters

roleName string
siteId int

Returns

IEnumerable<UserRole>

UpdateUserRole(UserRole)

UserRole UpdateUserRole(UserRole userRole)

Parameters

userRole UserRole

Returns

UserRole