Interface IUserRoleService
public interface IUserRoleService
Methods
AddUserRoleAsync(UserRole)
Save a new UserRole
Task<UserRole> AddUserRoleAsync(UserRole userRole)
Parameters
userRole
UserRole
Returns
DeleteUserRoleAsync(int)
Delete a UserRole in the database
Task DeleteUserRoleAsync(int userRoleId)
Parameters
userRoleId
int
Returns
GetUserRoleAsync(int)
Get one specific UserRole
Task<UserRole> GetUserRoleAsync(int userRoleId)
Parameters
Returns
GetUserRolesAsync(int)
Task<List<UserRole>> GetUserRolesAsync(int siteId)
Parameters
Returns
GetUserRolesAsync(int, int)
Task<List<UserRole>> GetUserRolesAsync(int siteId, int userId)
Parameters
Returns
GetUserRolesAsync(int, int, string)
Task<List<UserRole>> GetUserRolesAsync(int siteId, int userId, string roleName)
Parameters
siteId
intID-reference to a Site
userId
intID-reference to a User
roleName
stringName reference a Role
Returns
GetUserRolesAsync(int, string)
Task<List<UserRole>> GetUserRolesAsync(int siteId, string roleName)
Parameters
Returns
UpdateUserRoleAsync(UserRole)
Update a UserRole in the database
Task<UserRole> UpdateUserRoleAsync(UserRole userRole)
Parameters
userRole
UserRole